aboutsummaryrefslogtreecommitdiffstats
path: root/community/openpgm/APKBUILD
blob: e75f66485fae4a3b163d62094b73d9975e05aff7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=openpgm
pkgver=5.2.122
pkgrel=3
pkgdesc="An implementation of the PGM reliable multicast protocol"
url="https://www.freshports.org/net/openpgm/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="python3 perl"
subpackages="$pkgname-dev"
source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-$pkgver.tar.bz2
	openpgm-fix-includes.patch
	python3.patch
	libpgm-fix-pkgconfig.patch
	"

builddir="$srcdir"/libpgm-$pkgver/openpgm/pgm/
prepare() {
	default_prepare
	update_config_sub
}

build() {
	CFLAGS="$CFLAGS -D_GNU_SOURCE" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--disable-static \
		PYTHON=python3
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="dddd5c30f7ae9a6a2ca9738010d4e6a1b856f3d7e1636bb43ef697a0b07ad6f058978d6f21cc3f6efe0c21b48d71d496d1e914bd05e33ed6cfbda8b96821fa2f  libpgm-5.2.122.tar.bz2
6689ccafa00a9d436fb6074b6454df4443daa2e62db47c64a962dfb105ce2d0f85c79059aa27ac9834572cd30112e7f0407e24dfd995285fa7ac921d70214229  openpgm-fix-includes.patch
51378950af33062339b49019a9fe78a07ff60bda0ed08905cc6bd4a5a4b3ff2347e10a11c50355e7f03422325f2834e054db1e44afa5c3b02c54a7a9963a04b8  python3.patch
c49e1fec9b96e7b9228bf46671f74138d19bf938282bda20dd7be3f27ff49103ed5ec033b09f11b259740781e1652023d7286066e206495a173bed87f5b948dd  libpgm-fix-pkgconfig.patch"