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