summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Bos2015-07-08 18:15:50 +0100
committerCharles Bos2015-07-08 18:15:50 +0100
commit54a13c540be1295a38c245fd84423901e08849ac (patch)
tree2ab23879d63e6a43749a39e4c7f0c038ccd24b1f
downloadaur-54a13c540be1295a38c245fd84423901e08849ac.tar.gz
initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD46
-rw-r--r--cave9.desktop8
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bbf985ac0b4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = cave9
+ pkgdesc = A 3D gravity cave-exploration game based on the classic SFCave
+ pkgver = 0.4
+ pkgrel = 2
+ url = http://code.google.com/p/cave9/
+ arch = i686
+ arch = x86_64
+ license = LGPL3
+ license = custom
+ depends = mesa
+ depends = sdl_image
+ depends = sdl_ttf
+ source = http://cave9.googlecode.com/files/cave9_src-0.4.tgz
+ source = http://cave9.googlecode.com/files/cave9_data-4.tgz
+ source = cave9.desktop
+ sha256sums = 285fd1070e9fadade890ddd64f30db6bcfeaa5326c99d6e69744abab80da93d8
+ sha256sums = 89a1ef99f2399bf7638b25ce4b51c5c088e01c29bc407eab689ccbb39c5b8d39
+ sha256sums = 37b2fb322113f616b6794027ef309487dd0270eb17e436a499b2ef66c29da085
+
+pkgname = cave9
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a869765217
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Charles Bos <charlesbos1 AT gmail>
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributor: Colin Shea <colins@evaryont.ath.cx>
+
+pkgname=cave9
+pkgver=0.4
+_dataver=4
+pkgrel=2
+pkgdesc="A 3D gravity cave-exploration game based on the classic SFCave"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/cave9/"
+license=('LGPL3' 'custom')
+depends=('mesa' 'sdl_image' 'sdl_ttf')
+source=("http://cave9.googlecode.com/files/${pkgname}_src-${pkgver}.tgz"
+ "http://cave9.googlecode.com/files/${pkgname}_data-${_dataver}.tgz"
+ "${pkgname}.desktop")
+sha256sums=('285fd1070e9fadade890ddd64f30db6bcfeaa5326c99d6e69744abab80da93d8'
+ '89a1ef99f2399bf7638b25ce4b51c5c088e01c29bc407eab689ccbb39c5b8d39'
+ '37b2fb322113f616b6794027ef309487dd0270eb17e436a499b2ef66c29da085')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ CFLAGS='-Wno-error=cpp' LDFLAGS='' make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Install binary
+ install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+ # Install data files
+ mkdir -p "${pkgdir}/usr/share/${pkgname}"
+ cp ../data/*.{jpg,png,ttf,wav} "${pkgdir}/usr/share/${pkgname}"
+
+ # Install pixmap and .desktop file
+ install -Dm644 "../data/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -Dm644 "../${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+
+ # Install documentation and licenses
+ mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
+ install -m644 AUTHORS.txt README.txt "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm644 ../data/README.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_DATA.txt"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/cave9.desktop b/cave9.desktop
new file mode 100644
index 00000000000..61608b26143
--- /dev/null
+++ b/cave9.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=cave9
+Comment=A 3D gravity cave-exploration game based on the classic SFCave
+Exec=cave9
+Icon=cave9.png
+Terminal=false
+Categories=Game;ArcadeGame;