archrelease: copy trunk to community-any
[ArchLinux/community.git] / libpgm / trunk / PKGBUILD
blob63c448f9cbe7f32be6af61f526ecd0ac3521849b
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Lex Black <autumn-wind at web dot de>
3 # Contributor: Vladimir Kirillov <proger@wilab.org.ua>
5 pkgname=libpgm
6 pkgver=5.3.128
7 _pkgver="${pkgver//./-}"
8 pkgrel=2
9 pkgdesc="OpenPGM: implementation of the Pragmatic General Multicast (PGM, RFC3208)"
10 arch=('x86_64')
11 url='https://www.freshports.org/net/openpgm/'
12 license=('LGPL2.1')
13 depends=('glibc')
14 makedepends=('python')
15 options=(!strip)
16 #source=("http://openpgm.googlecode.com/files/$pkgname-$pkgver.tar.gz")
17 #source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-$pkgver.tar.gz")
18 source=("libpgm-$pkgver.tgz::https://github.com/steve-o/openpgm/archive/release-${_pkgver}.tar.gz")
19 sha256sums=('8d707ef8dda45f4a7bc91016d7f2fed6a418637185d76c7ab30b306499c6d393')
21 prepare() {
22   cd "$srcdir/openpgm-release-$_pkgver/openpgm/pgm"
23   2to3 -wn version_generator.py
24   # 5.3.128 is a little broken
25   cp openpgm-5.2.pc.in openpgm-5.3.pc.in
28 build() {
29   cd "$srcdir/openpgm-release-$_pkgver/openpgm/pgm"
30   ./bootstrap.sh
31   ./configure --prefix=/usr
32   make
35 package() {
36   cd "$srcdir/openpgm-release-$_pkgver/openpgm/pgm"
37   make prefix="$pkgdir/usr" install