summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2020-06-11 13:42:56 +0200
committerMichael Straube2020-06-11 13:42:56 +0200
commita98de1a9f3c378f256639daf879b8246978291d9 (patch)
tree559447f49f62d5049be68a9399ee9a8d58a01643
parentd3c2fb192446ed2bf1e1563d75fa19ca431c6791 (diff)
downloadaur-a98de1a9f3c378f256639daf879b8246978291d9.tar.gz
CMake package guidelines
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 6 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 36dedbcc3b1..c157b3571d0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = enyo-doom
pkgdesc = A frontend for Doom engines
pkgver = 1.1.1
- pkgrel = 1
+ pkgrel = 2
epoch = 1
url = https://gitlab.com/sdcofer70/enyo-doom
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 294389c1b3e..e564f542ab6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=enyo-doom
pkgver=1.1.1
-pkgrel=1
+pkgrel=2
epoch=1
_commit=1e03a05799d0cecf708f34347b8c2aa79a42b170
pkgdesc="A frontend for Doom engines"
@@ -17,18 +17,13 @@ optdepends=('chocolate-doom' 'prboom' 'zdoom' 'prboom-plus' 'gzdoom')
source=("$pkgname-$pkgver.tar.bz2::https://gitlab.com/sdcofer70/enyo-doom/repository/$pkgver/archive.tar.bz2")
sha512sums=('e85102a9fb81932b6d8a801a604432f57f26cdc38a2583b1bb1462d5c6d0d6ddbd4e3da3ef2a1a360110035629955e879eff272e12b3fec59b8fd7ddb488492e')
-prepare() {
- mkdir -p build
-}
-
build() {
- cd build
- cmake ../$pkgname-$pkgver-$_commit \
+ cmake -B build -S $pkgname-$pkgver-$_commit \
+ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr
- make
+ make -C build
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
}