summaryrefslogtreecommitdiff
path: root/community/dumb
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-02-06 15:15:42 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-02-06 15:15:42 +0100
commit9437cdbc03cb103235fa0b043f4cf73882f10f34 (patch)
tree5dba8834685e18222c996b3cd4c728958ed3a49b /community/dumb
parent7cfa9860fb15a4bf5066e33255da1a9b09cc95b1 (diff)
parenta110e74fe4a31aebb09e0da6e407af69ed996837 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/drbd/PKGBUILD community/dumb/PKGBUILD community/echat/PKGBUILD community/librcc/PKGBUILD community/linux-tools/PKGBUILD community/python2-pysqlite-legacy/PKGBUILD community/python2-pyxmpp/PKGBUILD core/libksba/PKGBUILD core/ncurses/PKGBUILD extra/libbonobo/PKGBUILD extra/libmpeg2/PKGBUILD extra/qt/PKGBUILD extra/rarian/PKGBUILD extra/wpa_supplicant_gui/PKGBUILD libre/audacious-plugins-libre/PKGBUILD
Diffstat (limited to 'community/dumb')
-rw-r--r--community/dumb/PKGBUILD53
1 files changed, 28 insertions, 25 deletions
diff --git a/community/dumb/PKGBUILD b/community/dumb/PKGBUILD
index 00551dd5f..b499d9579 100644
--- a/community/dumb/PKGBUILD
+++ b/community/dumb/PKGBUILD
@@ -1,31 +1,35 @@
+# $Id: PKGBUILD 83614 2013-02-03 23:11:33Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
# Contributor: Bjørn Lindeijer <bjorn lindeijer nl>
pkgname=dumb
pkgver=0.9.3
-pkgrel=6
-pkgdesc="An IT, XM, S3M and MOD player library"
-arch=('i686' 'x86_64' 'mips64el')
+pkgrel=7
+pkgdesc='IT, XM, S3M and MOD player library'
+arch=('x86_64' 'i686' 'mips64el')
license=('custom:dumb' 'GPL')
-url="http://dumb.sourceforge.net/"
+url='http://dumb.sourceforge.net/'
+makedepends=('setconf')
depends=('glibc' 'allegro4')
-source=(http://downloads.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver.tar.gz
- as-needed.patch
- CVE-2006-3668.patch)
-md5sums=('f48da5b990aa8aa822d3b6a951baf5c2'
- '580676387b07d3b5998bbd525df2df52'
- 'e1378e2eb30346073ee188608ac2c9e7')
+source=("http://downloads.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver.tar.gz"
+ 'as-needed.patch'
+ 'CVE-2006-3668.patch')
+sha256sums=('8d44fbc9e57f3bac9f761c3b12ce102d47d717f0dd846657fb988e0bb5d1ea33'
+ 'f7a41576d5dcecad2f9a01cbb0228457b434423046cb67c9a0a720ec87f43fb9'
+ '9f6785435757db725bc73b1c4874b91e80b9277c6fdd2b56e47dae1cfbc968e6')
build() {
cd "$srcdir/$pkgname-$pkgver"
- [ "${CARCH}" != "i686" ] && export CFLAGS="${CFLAGS} -fPIC"
- # Fix CVE-2006-3668 (Patch found in Gentoo and other distros).
+ # Add -fPIC for anything but i686
+ [ "$CARCH" = 'i686' ] || export CFLAGS="${CFLAGS} -fPIC"
+
+ # Patch from Gentoo for CVE-2006-3668
patch -p1 < "$srcdir/CVE-2006-3668.patch"
- # Apply a patch from Gentoo, so that we can build against binutils
- # 2.22 and above.
+ # Patch from Gentoo for binutils >= 2.22
patch -p1 < "$srcdir/as-needed.patch"
sed -i '/LDFLAGS :=/d' Makefile
cp Makefile Makefile.rdy
@@ -39,24 +43,23 @@ build() {
include make/unix.inc
ALL_TARGETS := core core-examples core-headers
ALL_TARGETS += allegro allegro-examples allegro-headers
-PREFIX := "$pkgdir/usr"
+PREFIX := /usr
EOF
# For some reason -lm is not linked for Allegro examples.
sed -ri 's/^(LINK_ALLEGRO := .+)$/\1 -lm/' make/unix.inc
- # Upstream's makefile ignores our CFLAGS. They put -I directives in
- # their own CFLAGS, so we can't just say
- # make CFLAGS=...
- # Gentoo's ebuild overrides another of their makefile variables, named
- # OFLAGS.
- make OFLAGS="${CFLAGS}"
+
+ # Use OFLAGS to be able to set CFLAGS without replacing the -I directives
+ make -j1 OFLAGS="${CFLAGS}"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- # Create directories
+
install -d "$pkgdir"/usr/{lib,bin,include}
- install -D -m644 licence.txt \
+ install -Dm644 licence.txt \
"$pkgdir/usr/share/licenses/$pkgname/licence.txt"
-
- make install
+ setconf make/config.txt PREFIX "$pkgdir/usr"
+ make DESTDIR="$pkgdir" install
}
+
+# vim:set ts=2 sw=2 et: