summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD46
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9c1bd969852
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = hikounomizu
+ pkgdesc = Platform-based, anime-styled fighting game
+ pkgver = 0.8.91
+ pkgrel = 1
+ url = https://hikounomizu.org
+ arch = x86_64
+ license = custom
+ makedepends = cmake>=3.13
+ makedepends = gendesk
+ depends = sdl2
+ depends = sdl2_image
+ depends = glu
+ depends = freetype2
+ depends = openal
+ depends = libvorbis
+ depends = tinyxml
+ source = https://download.tuxfamily.org/hnm/0.8.91/hikounomizu-0.8.91-src-withdata.tar.bz2
+ md5sums = c4383d1c7a2df4f0efe608f0855d8c45
+
+pkgname = hikounomizu
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..72a39967586
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Duncan Deveaux <duncan.at.hikounomizu.dot.org>
+
+pkgname=hikounomizu
+pkgver=0.8.91
+pkgrel=1
+pkgdesc="Platform-based, anime-styled fighting game"
+arch=('x86_64')
+url="https://hikounomizu.org"
+license=('custom')
+depends=('sdl2' 'sdl2_image' 'glu' 'freetype2' 'openal' 'libvorbis' 'tinyxml')
+makedepends=('cmake>=3.13' 'gendesk')
+source=("https://download.tuxfamily.org/hnm/0.8.91/hikounomizu-0.8.91-src-withdata.tar.bz2")
+md5sums=('c4383d1c7a2df4f0efe608f0855d8c45')
+
+
+prepare() {
+
+ gendesk -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" \
+ --name 'Hikou no mizu' --categories 'Game;ArcadeGame'
+}
+
+build() {
+
+ cmake -B build -S "${pkgname}-${pkgver}" \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -Wno-dev
+ make -C build
+}
+
+package() {
+
+ # Install License & README
+ install -Dm644 "${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ install -Dm644 "${pkgname}-${pkgver}/GPL" "${pkgdir}/usr/share/licenses/${pkgname}/GPL"
+ install -Dm644 "${pkgname}-${pkgver}/FAL" "${pkgdir}/usr/share/licenses/${pkgname}/FAL"
+ install -Dm644 "${pkgname}-${pkgver}/README" "${pkgdir}/usr/share/doc/${pkgname}/README"
+
+ # Install Desktop & Icon files
+ install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${pkgname}-${pkgver}/data/gfx/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+
+ # Install data & binary
+ make -C build DESTDIR="${pkgdir}" install
+}
+