summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander F Rødseth2015-06-10 14:32:02 +0200
committerAlexander F Rødseth2015-06-10 14:32:02 +0200
commit874b4229652347269d596596445ba44b2a8dbeec (patch)
tree714ec3aa4956e2fdbbd97f5fdf7bbf1de801eba4
downloadaur-874b4229652347269d596596445ba44b2a8dbeec.tar.gz
Initial import
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD57
-rw-r--r--insanerzshooter.install13
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1d4cbd7f7b3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = insanerzshooter-svn
+ pkgdesc = Old school 2D shoot 'em up game
+ pkgver = 30
+ pkgrel = 1
+ url = http://insanerzshooter.googlepages.com/
+ install = insanerzshooter.install
+ arch = x86_64
+ arch = i686
+ license = GPL3
+ makedepends = setconf
+ makedepends = subversion
+ makedepends = gendesk
+ depends = sdl_image
+ depends = sdl_ttf
+ depends = sdl_mixer
+ depends = sdl_gfx
+ depends = ttf-bitstream-vera
+ depends = gcc-libs
+ provides = insanerzshooter-svn
+ conflicts = insanerzshooter
+ source = svn+http://insanerzshooter.googlecode.com/svn/trunk/
+ md5sums = SKIP
+
+pkgname = insanerzshooter-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d8980055bca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: b4283 <b4283 at gmail>
+# Contributor: Dany Martineau <dany.luc.martineau gmail.com>
+
+pkgname=insanerzshooter-svn
+pkgver=30
+pkgrel=1
+pkgdesc="Old school 2D shoot 'em up game"
+url='http://insanerzshooter.googlepages.com/'
+license=('GPL3')
+arch=('x86_64' 'i686')
+depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'sdl_gfx' 'ttf-bitstream-vera' 'gcc-libs')
+makedepends=('setconf' 'subversion' 'gendesk')
+provides=('insanerzshooter-svn')
+conflicts=('insanerzshooter')
+install='insanerzshooter.install'
+source=('svn+http://insanerzshooter.googlecode.com/svn/trunk/')
+md5sums=('SKIP')
+
+prepare() {
+ cd 'trunk'
+
+ gendesk -n --pkgname "${pkgname/-svn}" --pkgdesc "$pkgdesc"
+
+ sed -i "s:data:/usr/share/${pkgname/-svn}:" main.cpp
+ sed -i "s:TTF_RenderText_Solid:TTF_RenderText_Blended:g" main.cpp
+ #tail -c+2 MakefilePC > Makefile
+}
+
+build() {
+ cd 'trunk'
+
+ g++ *.cpp -lSDLmain `pkg-config sdl --libs` -lSDL_image -lSDL_ttf \
+ -lSDL_mixer -lSDL_gfx -Wno-write-strings ${CXXFLAGS} -o "${pkgname/-svn}"
+ #make
+}
+
+package() {
+ cd 'trunk'
+
+ # executables
+ install -d "$pkgdir/usr/bin"
+ install -Dm755 "${pkgname/-svn}" "$pkgdir/usr/bin/$_svnmod"
+
+ # resources
+ install -d "$pkgdir/usr/share/${pkgname/-svn}"
+ install -Dm644 data/{*.wav,*.png} "$pkgdir/usr/share/${pkgname/-svn}/"
+ ln -s /usr/share/fonts/TTF/VeraBd.ttf \
+ "$pkgdir/usr/share/${pkgname/-svn}/FreeSans_bold.ttf"
+
+ # desktop shortcut and icon
+ install -Dm644 "${pkgname/-svn}.desktop" \
+ "$pkgdir/usr/share/applications/${pkgname/-svn}.desktop"
+ install -Dm644 "icon0.png" "$pkgdir/usr/share/pixmaps/${pkgname/-svn}.png"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/insanerzshooter.install b/insanerzshooter.install
new file mode 100644
index 00000000000..ad97d7babca
--- /dev/null
+++ b/insanerzshooter.install
@@ -0,0 +1,13 @@
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}
+
+# vim:set ts=2 sw=2 et: