summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 17 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f7fafe0f8c9..7ce71db53a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,33 @@
# Maintainer: GordonGR <gordongr@freemail.gr>
# Contributor: Kritoke <kritoke@gamebox.net>
+# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=lib32-libsidplay
_pkgname=libsidplay
pkgver=1.36.59
-pkgrel=3
+pkgrel=4
pkgdesc="A library for playing SID music files, lib32."
arch=('x86_64')
url="http://critical.ch/distfiles/"
license=('GPL')
options=('!libtool')
-depends=("${_pkgname}")
+depends=("${_pkgname}" "lib32-gcc-libs")
source=("http://critical.ch/distfiles/${_pkgname}-${pkgver}.tgz"
- "libsidplay-1.36.59-gcc43.patch")
+ "libsidplay-1.36.59-gcc43.patch"
+ "g++-6_build.patch")
md5sums=('37c51ba4bd57164b1b0bb7b43b9adece'
- 'c24d7bca2639f4fee03c40c7dcaadfee')
+ 'c24d7bca2639f4fee03c40c7dcaadfee'
+ '4fbea288f7f427818462343e33794356')
+
prepare() {
-cd ${srcdir}/${_pkgname}-${pkgver}
-patch -Np1 -i $srcdir/libsidplay-1.36.59-gcc43.patch
+cd ${_pkgname}-${pkgver}
+patch -Np1 -i ../libsidplay-1.36.59-gcc43.patch
+patch -Np1 -i ../g++-6_build.patch
}
build() {
-cd ${srcdir}/${_pkgname}-${pkgver}
+cd ${_pkgname}-${pkgver}
export CC="gcc -m32"
export CXX="g++ -m32 -Wno-narrowing"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
@@ -33,8 +38,9 @@ make
}
package() {
- cd ${srcdir}/${_pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
- cd "$pkgdir/usr"
- rm -rf include/
+cd ${_pkgname}-${pkgver}
+make DESTDIR=${pkgdir} install
+
+cd "$pkgdir/usr"
+rm -rf include/
}