summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Niemenmaa2018-02-28 13:24:29 +0200
committerMatti Niemenmaa2018-02-28 13:24:29 +0200
commitc6b14071c9c8936a530942b9e54bd684298daa23 (patch)
tree08a7f506c9bde8b69293d86ae7d8a1fe6a071935
parent49e33a88bf4535555893ed52b566160ca51f3346 (diff)
downloadaur-c6b14071c9c8936a530942b9e54bd684298daa23.tar.gz
Patch a Makefile to not link audacious and gtk2
The main library does not need them.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
-rw-r--r--no-link-audacious.patch12
3 files changed, 21 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a7144f078b..8a2228b74da 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = vgmstream-kode54-git
pkgdesc = Library for playback of various streamed audio formats used in video games (kode54's fork)
pkgver = r1020.r1169.gc3d3aaee
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/kode54/vgmstream
arch = i686
arch = x86_64
@@ -15,8 +15,10 @@ pkgbase = vgmstream-kode54-git
optdepends = audacious: to use the bundled plugin
source = vgmstream-kode54-git::git+https://github.com/kode54/vgmstream.git
source = install-headers.patch
+ source = no-link-audacious.patch
sha256sums = SKIP
sha256sums = 8f723536321480bb46b731f66c29a5f5354834094458f93de7539bbe4465b824
+ sha256sums = bacb229eeea75a6c00761c6c446cc34f25cd7ca938f7b4241f793d036f738554
pkgname = vgmstream-kode54-git
diff --git a/PKGBUILD b/PKGBUILD
index 4b5a7146cd4..0d752f986ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=vgmstream-kode54-git
pkgver=r1020.r1169.gc3d3aaee
-pkgrel=1
+pkgrel=2
pkgdesc="Library for playback of various streamed audio formats used in video games (kode54's fork)"
arch=(i686 x86_64)
url='https://github.com/kode54/vgmstream'
@@ -9,9 +9,11 @@ depends=(libogg libvorbis mpg123 ffmpeg)
makedepends=(audacious git)
optdepends=('audacious: to use the bundled plugin')
source=(${pkgname}::git+https://github.com/kode54/vgmstream.git
- install-headers.patch)
+ install-headers.patch
+ no-link-audacious.patch)
sha256sums=('SKIP'
- '8f723536321480bb46b731f66c29a5f5354834094458f93de7539bbe4465b824')
+ '8f723536321480bb46b731f66c29a5f5354834094458f93de7539bbe4465b824'
+ 'bacb229eeea75a6c00761c6c446cc34f25cd7ca938f7b4241f793d036f738554')
pkgver() {
cd "$srcdir/$pkgname"
@@ -24,6 +26,7 @@ pkgver() {
prepare() {
cd "$srcdir/$pkgname"
patch -p0 < "$srcdir"/install-headers.patch
+ patch -p0 < "$srcdir"/no-link-audacious.patch
}
build() {
diff --git a/no-link-audacious.patch b/no-link-audacious.patch
new file mode 100644
index 00000000000..a770cf986de
--- /dev/null
+++ b/no-link-audacious.patch
@@ -0,0 +1,12 @@
+diff --git src/Makefile.autotools.am src/Makefile.autotools.am
+index a15eb51f..a1f2e160 100644
+--- src/Makefile.autotools.am
++++ src/Makefile.autotools.am
+@@ -11,6 +17,6 @@ SUBDIRS = coding layout meta
+ libvgmstream_la_LDFLAGS = coding/libcoding.la layout/liblayout.la meta/libmeta.la
+ libvgmstream_la_SOURCES = (auto-updated)
+ libvgmstream_la_SOURCES += ../ext_libs/clHCA.c
+-libvgmstream_la_LIBADD = $(AUDACIOUS_LIBS) $(GTK_LIBS) $(VORBISFILE_LIBS) $(VORBIS_LIBS) $(MPG123_LIBS) -lm
++libvgmstream_la_LIBADD = $(VORBISFILE_LIBS) $(VORBIS_LIBS) $(MPG123_LIBS) -lm
+ EXTRA_DIST = (auto-updated)
+ EXTRA_DIST += ../ext_includes/clHCA.h