summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dec6feefb78
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = aldumb
+ pkgdesc = Allegro 4 glue library for DUMB module player library
+ pkgver = 2.0.2
+ pkgrel = 1
+ url = https://github.com/kode54/dumb
+ arch = x86_64
+ arch = i686
+ license = custom: dumb
+ license = GPL
+ makedepends = cmake
+ depends = dumb
+ depends = allegro4
+ source = aldumb-2.0.2.tar.gz::https://github.com/kode54/dumb/archive/2.0.2.tar.gz
+ sha256sums = 9e64eff5e4237a1e3c2cf2e8d5f75e3b54c2197fd5bc85a71a4741a5fd9c10f4
+
+pkgname = aldumb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a01fa5af909
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+
+pkgname=aldumb
+pkgver=2.0.2
+pkgrel=1
+pkgdesc='Allegro 4 glue library for DUMB module player library'
+arch=('x86_64' 'i686')
+license=('custom: dumb' 'GPL')
+url='https://github.com/kode54/dumb'
+depends=('dumb' 'allegro4')
+makedepends=('cmake')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/kode54/dumb/archive/$pkgver.tar.gz")
+sha256sums=('9e64eff5e4237a1e3c2cf2e8d5f75e3b54c2197fd5bc85a71a4741a5fd9c10f4')
+
+prepare() {
+ rm -rf build
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../dumb-$pkgver \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_ALLEGRO4=ON \
+ -DBUILD_EXAMPLES=OFF
+ make
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+ install -Dm644 dumb-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+ # delete stuff present in `dumb` package
+ rm -f "$pkgdir"/usr/include/dumb.h
+ rm -f "$pkgdir"/usr/lib/libdumb*
+ rm -rf "$pkgdir"/usr/lib/pkgconfig
+}