archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libopenmpt / trunk / PKGBUILD
blob63c1d2337979cefe717a6ba7e2a316f969e11a1d
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=libopenmpt
4 pkgver=0.7.1
5 pkgrel=1
6 pkgdesc="A library to render tracker music to a PCM audio stream"
7 arch=(x86_64)
8 url="https://lib.openmpt.org/libopenmpt/"
9 license=(BSD)
10 depends=(
11   flac
12   gcc-libs
13   glibc
14   libogg  # required by pkgconf
15   libpulse
16   libsndfile
17   libvorbis
18   mpg123
19   portaudio
20   zlib
22 makedepends=(
23   autoconf-archive
24   doxygen
25   help2man
27 provides=(libopenmpt.so)
28 source=($pkgname-$pkgver.tar.gz::https://lib.openmpt.org/files/libopenmpt/src/$pkgname-$pkgver+release.autotools.tar.gz)
29 sha512sums=('65468341b24d80f8bf0e9cf32d43b3ca3ced0323836373ae3c794b6df5b23d7e9c230ec37dd00777e22038d340adb56b20b83815e048fae22117ead0b4044bba')
30 b2sums=('5bc9ad5640e842d7320df59c76cae7619a36dab72a5b084a65ab0b99f00d48ce1aaca4c7344a9e14eab05bd3f05c8f60a93bce68e99cd5f93344453dee90d29f')
32 prepare() {
33   cd $pkgname-$pkgver+release.autotools
34   autoreconf -fiv
37 build() {
38   cd $pkgname-$pkgver+release.autotools
39   ./configure --prefix=/usr
40   # prevent excessive overlinking due to libtool
41   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
42   make
45 check() {
46   make -k check -C $pkgname-$pkgver+release.autotools
49 package() {
50   cd $pkgname-$pkgver+release.autotools
51   make DESTDIR="$pkgdir" install
52   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"