diff options
author | Matti Niemenmaa | 2018-02-28 13:03:31 +0200 |
---|---|---|
committer | Matti Niemenmaa | 2018-02-28 13:06:34 +0200 |
commit | 29167d47f5dbfabd6fcd803eac6c48b62f1cb852 (patch) | |
tree | 96f2b10b8f21b07712dd0e6eec6ecdd2a01ae918 /PKGBUILD | |
parent | a91006e7fe44297dd72c937d74abfb10d84e963f (diff) | |
download | aur-29167d47f5dbfabd6fcd803eac6c48b62f1cb852.tar.gz |
Fix build, and make/optdepend on audacious
No point in fighting the build system about audacious, we can just
provide the plugin and not require it at runtime.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 11 insertions, 16 deletions
@@ -1,14 +1,17 @@ pkgname=vgmstream-kode54-git -pkgver=r1020.r770.g00e1a5f +pkgver=r1020.r1169.gc3d3aaee pkgrel=1 pkgdesc="Library for playback of various streamed audio formats used in video games (kode54's fork)" arch=(i686 x86_64) url='https://gitlab.kode54.net/kode54/vgmstream' license=(BSD) depends=(glibc libogg libvorbis mpg123 ffmpeg) -makedepends=(git) -source=(${pkgname}::git+https://gitlab.kode54.net/kode54/vgmstream.git) -sha256sums=('SKIP') +makedepends=(audacious git) +optdepends=('audacious: to use the bundled plugin') +source=(${pkgname}::git+https://gitlab.kode54.net/kode54/vgmstream.git + install-headers.patch) +sha256sums=('SKIP' + '8f723536321480bb46b731f66c29a5f5354834094458f93de7539bbe4465b824') pkgver() { cd "$srcdir/$pkgname" @@ -20,27 +23,19 @@ pkgver() { prepare() { cd "$srcdir/$pkgname" - - # We won't build the Audacious plugin so we don't need the libraries either. - sed -i '/PKG_CHECK_MODULES(\(AUDACIOUS\|GTK\)/{N;N;d}' configure.ac + patch -p0 < "$srcdir"/install-headers.patch } build() { cd "$srcdir/$pkgname" ./bootstrap - CFLAGS="$CFLAGS -DVGM_USE_FFMPEG" LIBS="-lavcodec -lavformat -lavutil" ./configure - cd src - make -f Makefile.audacious - "${CC-cc}" "$CFLAGS" -lvorbisfile -lmpg123 -lavcodec -lavformat -lavutil -shared -o .libs/libvgmstream.so .libs/*.o */.libs/*.o ../ext_libs/.libs/*.o + CFLAGS="$CFLAGS -DVGM_USE_FFMPEG" LIBS="-lavcodec -lavformat -lavutil" ./configure --prefix=/usr + make -f Makefile.autotools } package() { cd "$srcdir/$pkgname" - install -D -m644 -t "$pkgdir/usr/include" ext_includes/clHCA.h - install -D -m644 -t "$pkgdir/usr/include/vgmstream" src/{vgmstream,stream{file,types},util}.h - install -D -m644 -t "$pkgdir/usr/include/vgmstream/coding" src/coding/{{acm,nwa}_decoder,g72x_state}.h - install -D -m644 -t "$pkgdir/usr/lib" src/.libs/libvgmstream.{a,so} - install -D -m644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING + make -f Makefile.autotools install DESTDIR="$pkgdir" } # vim:set sw=2 et: |