2019-06-20 17:48:41 +00:00
|
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
2017-09-26 12:37:53 +00:00
|
|
|
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
|
|
|
|
# Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
|
2019-06-20 17:48:41 +00:00
|
|
|
# Contributor: Bjørn Lindeijer <bjorn@lindeijer.nl>
|
2017-09-26 12:37:53 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable sse
|
|
|
|
|
2019-06-20 17:48:41 +00:00
|
|
|
pkgname=dumb
|
2018-02-03 16:10:45 +00:00
|
|
|
pkgver=2.0.3
|
2020-07-10 01:17:22 +00:00
|
|
|
pkgrel=3
|
2017-09-26 12:37:53 +00:00
|
|
|
pkgdesc='IT, XM, S3M and MOD player library'
|
2019-06-20 17:48:41 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
license=(custom:dumb GPL)
|
|
|
|
url='https://dumb.sf.net/'
|
|
|
|
makedepends=(allegro cmake ninja)
|
2017-09-26 12:37:53 +00:00
|
|
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/kode54/dumb/archive/$pkgver.tar.gz")
|
2018-02-03 16:10:45 +00:00
|
|
|
sha256sums=('99bfac926aeb8d476562303312d9f47fd05b43803050cd889b44da34a9b2a4f9')
|
2017-09-26 12:37:53 +00:00
|
|
|
|
|
|
|
build() {
|
2019-06-20 17:48:41 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2017-11-14 14:47:44 +00:00
|
|
|
cmake "$srcdir/$pkgname-$pkgver" \
|
2017-09-26 12:37:53 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBUILD_ALLEGRO4=OFF \
|
|
|
|
-DBUILD_EXAMPLES=OFF \
|
2017-11-14 14:47:44 +00:00
|
|
|
-DUSE_SSE=OFF \
|
|
|
|
-GNinja
|
2019-06-20 17:48:41 +00:00
|
|
|
ninja
|
2017-09-26 12:37:53 +00:00
|
|
|
}
|
|
|
|
|
2017-11-14 14:47:44 +00:00
|
|
|
package_dumb() {
|
2019-06-20 17:48:41 +00:00
|
|
|
DESTDIR="$pkgdir" ninja -C build install
|
2017-11-14 14:47:44 +00:00
|
|
|
install -Dm644 "$pkgbase-$pkgver/LICENSE" \
|
|
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2017-09-26 12:37:53 +00:00
|
|
|
}
|
2017-11-14 14:47:44 +00:00
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|