summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7dd6db7062d..7814936b446 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,30 @@
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
pkgname=sdltrs
-pkgver=1.2.13
+pkgver=1.2.14
pkgrel=1
arch=('i686' 'pentium4' 'x86_64')
pkgdesc="TRS-80 Model I/III/4/4P emulator"
url="https://gitlab.com/jengun/sdltrs"
license=('BSD')
depends=('hicolor-icon-theme' 'sdl2')
+makedepends=('cmake')
source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('c6056ad1ca971691fbe5d16876e266c2ff9759e450f460873efa955d76c68b979899b508489e2046b6b47269c7f04fd9b4edb4f55a68585f790e232c08ddd255')
+sha512sums=('eeb759c8f3f78576105a87fd22f8e21d716863eeb2d424360a46a00cec69418d57f34c7fbd802eeab6d1a4baf5c66b6114925c6cdb4d19e634695fb821946a4e')
build() {
- cd $pkgname-$pkgver
- ./autogen.sh
- ./configure --enable-readline --enable-zbx --prefix=/usr
- make
+ mkdir -p build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ ../$pkgname-$pkgver
+ cmake --build .
}
package() {
- cd $pkgname-$pkgver
+ cd build
make DESTDIR="$pkgdir" install
- install -dm0755 "$pkgdir/usr/share/licenses/$pkgname"
+ install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \
-t "$pkgdir/usr/share/licenses/$pkgname"
}