archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libopenmpt / repos / extra-x86_64 / PKGBUILD
blob5f46935d43959289d46359b514724ecc24b10dff
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=libopenmpt
4 pkgver=0.6.0
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 libFLAC.so
12   gcc-libs
13   glibc
14   libogg libogg.so
15   libpulse libpulse.so libpulse-simple.so
16   libsndfile libsndfile.so
17   libvorbis libvorbis.so libvorbisfile.so
18   mpg123 libmpg123.so
19   portaudio libportaudio.so
21 makedepends=(autoconf-archive doxygen help2man)
22 # TODO: remove provides/replaces on openmpt123 after 2022-05-01
23 provides=(libopenmpt.so openmpt123)
24 replaces=(openmpt123)
25 source=(
26   "$pkgname-$pkgver.tar.gz::https://lib.openmpt.org/files/libopenmpt/src/${pkgname}-${pkgver}+release.autotools.tar.gz"
28 sha512sums=('8da6cf1f2dbf683c32f45cbf884784360cced5e21f9862c96a1a679bd90b36be9a7cc59accbf82271a804722986cb81e75915f6564aeaaa248ed3e967dfdfb1a')
29 b2sums=('44cf8c5f725d2b11409d23e293dca0c151cad17c029da7f70a22366e75baa1b49b763f67d617d84a142efd3933b90344ccca5d881e5c724e2cfe0210170593dc')
31 prepare() {
32   mv -v "$pkgname-$pkgver+release.autotools" "$pkgname-$pkgver"
33   cd "$pkgname-$pkgver"
34   autoreconf -fiv
37 build() {
38   cd "$pkgname-$pkgver"
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   cd "$pkgname-$pkgver"
47   make -k check
50 package() {
51   cd "$pkgname-$pkgver"
52   make DESTDIR="$pkgdir/" install
53   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"