summaryrefslogtreecommitdiff
path: root/community/dumb/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-21 23:15:10 +0000
committerroot <root@rshg054.dnsready.net>2012-02-21 23:15:10 +0000
commit1f55cedf5ea357497d2a98eb2be78d8dab4a9665 (patch)
tree5e44ad19f2672ee92283377c9fe6eab3c8a815d7 /community/dumb/PKGBUILD
parent11484c032f8c236b2044e715a9a3b28e33f65598 (diff)
Tue Feb 21 23:15:10 UTC 2012
Diffstat (limited to 'community/dumb/PKGBUILD')
-rw-r--r--community/dumb/PKGBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/community/dumb/PKGBUILD b/community/dumb/PKGBUILD
index c8701a37b..2ddfc6153 100644
--- a/community/dumb/PKGBUILD
+++ b/community/dumb/PKGBUILD
@@ -4,20 +4,31 @@
pkgname=dumb
pkgver=0.9.3
-pkgrel=5
+pkgrel=6
pkgdesc="An IT, XM, S3M and MOD player library"
arch=('i686' 'x86_64')
license=('custom:dumb' 'GPL')
url="http://dumb.sourceforge.net/"
depends=('glibc' 'allegro4')
-source=(http://downloads.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver.tar.gz)
-md5sums=('f48da5b990aa8aa822d3b6a951baf5c2')
+source=(http://downloads.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver.tar.gz
+ as-needed.patch
+ CVE-2006-3668.patch)
+md5sums=('f48da5b990aa8aa822d3b6a951baf5c2'
+ '580676387b07d3b5998bbd525df2df52'
+ 'e1378e2eb30346073ee188608ac2c9e7')
build() {
cd "$srcdir/$pkgname-$pkgver"
[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
- # Create the directories which the Makefile somehow fails to create
- install -d lib/unix/{debug,release}
+
+ # Fix CVE-2006-3668 (Patch found in Gentoo and other distros).
+ patch -p1 < "$srcdir/CVE-2006-3668.patch"
+
+ # Apply a patch from Gentoo, so that we can build against binutils
+ # 2.22 and above.
+ patch -p1 < "$srcdir/as-needed.patch"
+ sed -i '/LDFLAGS :=/d' Makefile
+ cp Makefile Makefile.rdy
# Make with Allegro support
# Upstream's make process is interactive, and we can't simply pass