db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / libopenmpt / trunk / PKGBUILD
blob56762101d5ffb5b32665799b3095df0261e1e2dc
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=libopenmpt
4 pkgver=0.7.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
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=('478fa22a09034695684550ac56a2366126cbf276e02642d3e05968ae6c5c14e7970adde2ab20bc1a26be78d4aabf90c5cb12d4f74f1f30e546e5ea0440c669f3')
30 b2sums=('3292b843281309ef6dcc110179c25d7e9962bb34fc9c6cc8929b6a3ac027a6726cfa51d4c726d3afb246022b4d28975c8f7666abbe37d41f0b31c732572de83e')
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/"