summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNascher2015-08-12 16:22:45 +0000
committerNascher2015-08-12 16:22:45 +0000
commit9f15a739336c7114e0b13db2439ad9c3b029a104 (patch)
tree37902a9946629d6e1242781420193a254831fa49 /PKGBUILD
downloadaur-doukutsu.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..05fa97a06c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Nascher <kevin at nascher.org>
+# Contributor: Anton Larionov <diffident dot cat at gmail dot com>
+# Contributor: Victor Feight <vrfeight3 at gmail dot com>
+# Contributor: Frozen Fox <frozenfoxz at gmail dot com>
+
+pkgname=doukutsu
+pkgver=1.2
+pkgrel=6
+pkgdesc='Japanese freeware PC side-scrolling platformer game (aka Cave Story)'
+url='http://www.cavestory.org/'
+arch=('i686' 'x86_64')
+license=('custom:freeware')
+depends=('bash' 'sdl' 'fltk' 'libxinerama' 'libxft')
+
+source=('http://www.cavestory.org/downloads/linuxdoukutsu-1.01.tar.bz2'
+ 'http://www.cavestory.org/downloads/linuxDoukutsu-1.2.zip'
+ 'http://www.cavestory.org/downloads/DoConfigure-r2.zip'
+ 'configure-gamepad-fix.patch'
+ 'doukutsu.desktop'
+ 'doukutsu-config.desktop'
+ 'doukutsu.png'
+ 'doukutsu')
+
+md5sums=('ec08da7c45419bc7740b8149ec7340cf'
+ 'e73d7330fba3cc5c15f0eeb239df586f'
+ '9f5e96d5ff9671691b7c8a41f8fa5880'
+ 'd4f9cdcd06058177671bd741b5bf5fa4'
+ 'd2633fb77949eb404f3199191e328bf3'
+ 'ca872e3276959cb523f57f0785c1a034'
+ '5262f9ff9bc528c790bf424016e6305f'
+ '4407e1feab85bd6ea5f18d5e7d91a747')
+
+prepare() {
+ cd "$srcdir"
+
+ # Fix DoConfigure utility bug where gamepad configurations are not saved correctly
+ # source: http://www.desura.com/games/cave-story/forum/thread/problems-remapping-the-joystick-under-linux
+ patch -Np0 -i "$srcdir/configure-gamepad-fix.patch"
+}
+
+build() {
+ cd "${srcdir}"
+ rm DoConfigure
+ g++ DoConfig.cpp -o DoConfigure -s $(fltk-config --cxxflags --ldflags)
+}
+
+package() {
+ cd "${srcdir}/linuxDoukutsu-1.01"
+
+ install -dm755 "${pkgdir}"/{opt/${pkgname},usr/share/{doc/${pkgname},applications}}
+ cp -r {Config.dat,data,doc,doukutsu} "${pkgdir}/opt/${pkgname}/"
+
+ if [ "$CARCH" == "i686" ]; then
+ install -Dm755 "${srcdir}/linuxDoukutsu-1.2/doukutsu_32bits" "${pkgdir}/opt/${pkgname}/doukutsu.bin"
+ else
+ install -Dm755 "${srcdir}/linuxDoukutsu-1.2/doukutsu_64bits" "${pkgdir}/opt/${pkgname}/doukutsu.bin"
+ fi
+
+ install -Dm644 "${srcdir}"/*.desktop "${pkgdir}/usr/share/applications/"
+ install -Dm644 "${srcdir}/doukutsu.png" "${pkgdir}/usr/share/pixmaps/doukutsu.png"
+ install -Dm644 doc/* "${pkgdir}/usr/share/doc/${pkgname}/"
+
+ install -Dm755 "${srcdir}/DoConfigure" "${pkgdir}/opt/${pkgname}/DoConfigure"
+ install -Dm755 "${srcdir}/doukutsu" "${pkgdir}/usr/bin/doukutsu"
+}