summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorprofessorkaos642016-09-21 16:05:11 -0400
committerprofessorkaos642016-09-21 16:05:11 -0400
commit6d287dfe16dc93f29471a8acd8f559ca28b3e382 (patch)
tree35d155e8dfc941f54204732086a7ca64fec5df16
downloadaur-6d287dfe16dc93f29471a8acd8f559ca28b3e382.tar.gz
initial upload
-rw-r--r--.SRCINFO26
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD51
-rw-r--r--darkplaces-git.install15
-rw-r--r--darkplaces.desktop11
5 files changed, 107 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b0a56d2f6bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = darkplaces-git
+ pkgdesc = An advanced Quake 1 game engine (git-latest)
+ pkgver = r9370.f5e4d03
+ pkgrel = 1
+ url = https://github.com/xonotic/darkplaces.git
+ install = darkplaces-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = xextproto
+ makedepends = xf86dgaproto
+ makedepends = xf86vidmodeproto
+ makedepends = xproto
+ depends = alsa-lib
+ depends = hicolor-icon-theme
+ depends = libjpeg-turbo
+ depends = libxpm
+ depends = libxxf86vm
+ depends = sdl
+ source = git+https://github.com/xonotic/darkplaces.git
+ source = darkplaces.desktop
+ sha256sums = SKIP
+ sha256sums = 476f513f85da873ce93c89f2078bf9c2ea244e3e13a19c6ab02e818ddf221c37
+
+pkgname = darkplaces-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a395510763
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Michael DeGuzis <mdeguzis@gmail.com>
+# Credit: Arkham <arkham at archlinux dot us>
+
+pkgname=darkplaces-git
+_gitname=darkplaces
+pkgver=r9370.f5e4d03
+pkgrel=1
+pkgdesc="An advanced Quake 1 game engine (git-latest)"
+arch=('i686' 'x86_64')
+url="https://github.com/xonotic/darkplaces.git"
+license=('GPL2')
+depends=('alsa-lib' 'hicolor-icon-theme' 'libjpeg-turbo' 'libxpm' 'libxxf86vm' 'sdl')
+makedepends=('xextproto' 'xf86dgaproto' 'xf86vidmodeproto' 'xproto')
+Conflicts=('darkplaces')
+Provides=('darkplaces')
+install=$pkgname.install
+source=('git+https://github.com/xonotic/darkplaces.git'
+ 'darkplaces.desktop')
+sha256sums=('SKIP'
+ '476f513f85da873ce93c89f2078bf9c2ea244e3e13a19c6ab02e818ddf221c37')
+
+pkgver() {
+
+ cd $_gitname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+
+}
+
+build() {
+
+ cd $srcdir/$_gitname
+
+ # Make sure Darkplaces is not compiled with -j > 1.
+ MAKEFLAGS="${MAKEFLAGS} -j4"
+ make OPTIM_RELEASE="${CFLAGS}" DP_FS_BASEDIR=/usr/share/games/quake release
+
+}
+
+package() {
+
+ cd $srcdir/$_gitname
+ install -d $pkgdir/usr/bin
+ install -m755 darkplaces-{dedicated,glx,sdl} $pkgdir/usr/bin
+
+ for i in 16 24 32 48 64 72; do
+ install -Dm644 darkplaces${i}x${i}.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/darkplaces.png
+ done
+
+ install -Dm644 $srcdir/darkplaces.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+
+}
diff --git a/darkplaces-git.install b/darkplaces-git.install
new file mode 100644
index 00000000000..956032354e0
--- /dev/null
+++ b/darkplaces-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ cat <<EOF
+You need the Quake 1 data files to play.
+Copy the "id1" directory to /usr/share/games/quake
+EOF
+}
+
+post_upgrade() {
+ if [ "$(vercmp "$1" 20140513-1)" -eq 1 ]; then
+ cat <<EOF
+The Quake data directory has changed to /usr/share/games/quake
+You may need to move or link your current data from /usr/share/quake
+EOF
+ fi
+}
diff --git a/darkplaces.desktop b/darkplaces.desktop
new file mode 100644
index 00000000000..2c69559667d
--- /dev/null
+++ b/darkplaces.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Exec=darkplaces-sdl
+Icon=darkplaces
+Type=Application
+Categories=Game;ActionGame;
+Name=Darkplaces
+GenericName=Quake Engine
+Comment=Play Quake with the Darkplaces engine
+StartupNotify=true
+Terminal=false