diff options
author | Duncan Deveaux | 2020-08-06 20:00:46 +0200 |
---|---|---|
committer | Duncan Deveaux | 2020-08-06 20:00:46 +0200 |
commit | 6e5da6fa6da3fa32e952c417b7b458bfcdf58925 (patch) | |
tree | f3b16fe39f9d29d0736765cec32b98312f6b38f6 /PKGBUILD | |
download | aur-6e5da6fa6da3fa32e952c417b7b458bfcdf58925.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..72a399675867 --- /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 +} + |