summaryrefslogtreecommitdiff
path: root/community/dumb
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/dumb
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/dumb')
-rw-r--r--community/dumb/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/dumb/PKGBUILD b/community/dumb/PKGBUILD
new file mode 100644
index 000000000..3652f34cc
--- /dev/null
+++ b/community/dumb/PKGBUILD
@@ -0,0 +1,50 @@
+# 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=4
+pkgdesc="An IT, XM, S3M and MOD player library"
+arch=('i686' 'x86_64')
+license=('custom:dumb' 'GPL')
+url="http://dumb.sourceforge.net/"
+depends=('glibc' 'allegro')
+source=(http://downloads.sourceforge.net/sourceforge/dumb/$pkgname-$pkgver.tar.gz)
+md5sums=('f48da5b990aa8aa822d3b6a951baf5c2')
+
+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}
+
+ # Make with Allegro support
+ # Upstream's make process is interactive, and we can't simply pass
+ # a here-document to the make command. The best way is to write our
+ # own config.txt, circumventing the interactive configuration step,
+ # as is done in Gentoo's ebuild.
+ cat << EOF > make/config.txt
+include make/unix.inc
+ALL_TARGETS := core core-examples core-headers
+ALL_TARGETS += allegro allegro-examples allegro-headers
+PREFIX := "$pkgdir/usr"
+EOF
+
+ # 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}"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # Create directories
+ install -d "$pkgdir"/usr/{lib,bin,include}
+ install -D -m644 licence.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/licence.txt"
+
+ make install
+}