From c3fb4b53f9372732f7dddca4fae34357b2828429 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 3 Jun 2023 18:28:03 +0000 Subject: [PATCH] extra/libpgm to 5.3.128-3 --- extra/libpgm/PKGBUILD | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/extra/libpgm/PKGBUILD b/extra/libpgm/PKGBUILD index b5bb598f2..58fef5294 100644 --- a/extra/libpgm/PKGBUILD +++ b/extra/libpgm/PKGBUILD @@ -1,4 +1,5 @@ -# Maintainer: Kyle Keen +# Maintainer: Balló György +# Contributor: Kyle Keen # Contributor: Lex Black # Contributor: Vladimir Kirillov @@ -7,38 +8,36 @@ pkgname=libpgm pkgver=5.3.128 -_pkgver="${pkgver//./-}" -pkgrel=2 -pkgdesc="OpenPGM: implementation of the Pragmatic General Multicast (PGM, RFC3208)" +pkgrel=3 +pkgdesc='Library implementing the Pragmatic General Multicast (PGM, RFC3208) reliable transport protocol (OpenPGM)' arch=('x86_64') -url='https://www.freshports.org/net/openpgm/' -license=('LGPL2.1') +url='https://github.com/steve-o/openpgm' +license=('LGPL') depends=('glibc') makedepends=('python') -options=(!strip) -#source=("http://openpgm.googlecode.com/files/$pkgname-$pkgver.tar.gz") -#source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-$pkgver.tar.gz") -source=("libpgm-$pkgver.tgz::https://github.com/steve-o/openpgm/archive/release-${_pkgver}.tar.gz" +source=("https://github.com/steve-o/openpgm/archive/release-${pkgver//./-}/openpgm-$pkgver.tar.gz" 'inline-pgm_family_string.patch') sha256sums=('8d707ef8dda45f4a7bc91016d7f2fed6a418637185d76c7ab30b306499c6d393' '0373d16324605639442d24020e09dcda3e3ab5b86fda7b01c865b49163650706') prepare() { - cd "$srcdir/openpgm-release-$_pkgver/openpgm/pgm" - 2to3 -wn version_generator.py - # 5.3.128 is a little broken - cp openpgm-5.2.pc.in openpgm-5.3.pc.in + cd openpgm-release-${pkgver//./-}/openpgm/pgm + + # https://github.com/steve-o/openpgm/pull/66 + mv openpgm-5.2.pc.in openpgm-5.3.pc.in + patch -p3 -i $srcdir/inline-pgm_family_string.patch + + ./bootstrap.sh } build() { - cd "$srcdir/openpgm-release-$_pkgver/openpgm/pgm" - ./bootstrap.sh + cd openpgm-release-${pkgver//./-}/openpgm/pgm ./configure --prefix=/usr make } package() { - cd "$srcdir/openpgm-release-$_pkgver/openpgm/pgm" - make prefix="$pkgdir/usr" install + cd openpgm-release-${pkgver//./-}/openpgm/pgm + make DESTDIR="$pkgdir" install }