summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKaan Kasım2017-06-20 11:17:57 +0300
committerKaan Kasım2017-06-20 11:17:57 +0300
commit01ea992fd887de9bfc12e56f6cc3136802b6ce99 (patch)
treeeefd0d6ffbafcea23cdf6aaf505a69f8e95baa6d /PKGBUILD
downloadaur-01ea992fd887de9bfc12e56f6cc3136802b6ce99.tar.gz
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d9ac51495b4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Kaan Kasım <kaankasim88@gmail.com>
+
+pkgname=doomretro-git
+pkgver=2.4.5.r356.g06d5feff
+pkgrel=1
+pkgdesc='The classic, refined DOOM source port.'
+arch=('i686' 'x86_64')
+url='http://doomretro.com/'
+license=('GPL3')
+depends=('sdl2' 'sdl2_image' 'sdl2_mixer')
+makedepends=('cmake' 'git')
+conflicts=('doomretro')
+provides=('doomretro')
+source=('git://github.com/bradharding/doomretro.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd doomretro
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../doomretro \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+}