diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-09-29 19:56:16 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-09-29 19:56:16 -0700 |
commit | 043836385c7d9ed021a4e57e2093c341bb34df9d (patch) | |
tree | 307f8e088da26dd2c29b44f96bee95019e85966b | |
download | 7kaa-043836385c7d9ed021a4e57e2093c341bb34df9d.tar.xz |
Initial commit
-rw-r--r-- | 7kaa.desktop | 9 | ||||
-rw-r--r-- | 7kaa.ico | bin | 0 -> 766 bytes | |||
-rw-r--r-- | 7kaa.sh | 3 | ||||
-rw-r--r-- | PKGBUILD | 55 |
4 files changed, 67 insertions, 0 deletions
diff --git a/7kaa.desktop b/7kaa.desktop new file mode 100644 index 0000000..8ee6fca --- /dev/null +++ b/7kaa.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Seven Kingdoms: Ancient Adversaries +Comment=Real-time strategy computer game +Exec=/usr/bin/7kaa +Icon=7kaa.ico +Terminal=false +Type=Application +Categories=Application;Game; diff --git a/7kaa.ico b/7kaa.ico Binary files differnew file mode 100644 index 0000000..7516afe --- /dev/null +++ b/7kaa.ico @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/lib/7kaa +./7kaa "$@" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..60692ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Contributor: Lex Black <autumn-wind at web dot de> +# Contributor: xnitropl <xnitropl at gmail dot com> +# Contributor: Anton Larionov <diffident dot cat at gmail dot com> + +pkgname=7kaa +pkgver=2.15.0 +pkgrel=1 +pkgdesc='Seven Kingdoms: Ancient Adversaries is a real-time strategy (RTS) computer game developed by Trevor Chan' +url='https://7kfans.com/' +arch=('i686' 'x86_64') +license=('GPL2') +depends=('openal' 'desktop-file-utils' 'enet' 'gcc-libs' 'sdl2') +optdepends=('7kaa-music: for ingame music') +conflicts=('7kaa-data') +provides=('7kaa-data') +source=("https://github.com/the3dfxdude/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz" + "${pkgname}.sh" + "${pkgname}.desktop" + "${pkgname}.ico") +sha512sums=('99a13b57533fd31b0b6386dbb71e4955aafb7ca08af0075cf0704d8bd0583ccf7b4efc2a920f1d3df75955f916cca481156019e246dc75adaa9c379f3b5d7110' + '989985576312222fe6f5a2c12ed4f37078a242bd57fbfa5613689fb7dd406064d49982ab325dab6fc5c4bd8247d58f6b91931abcdcb05b6ca2ea9169f30cc986' + 'f0fcc0c518b1e89ad88e1a71cfccd0f6297a3b7e1ba502185278277976e7da8c20db2e08f6b600c8c02013acd138ec2153ca28af05deed5a08eafbdfa29dfb10' + '9cc724622be339f1eeb437b5900745781817c9771039e732ad73e3aae2be2f5b5d78dc8cc06c8af42e38de9acda5e0f5d50a2669ce6d3c8f6c50c04c50687d41') + + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure + make +} + +package() { + # install data files + install -dm755 "${pkgdir}/usr/lib/7kaa/" + cd "${srcdir}/$pkgname-$pkgver/data/" + cp -r {encyc,encyc2,image,resource,scenari2,scenario,sound,sprite,tutorial} "${pkgdir}/usr/lib/7kaa/" + + # fix permissions + cd "${pkgdir}/usr/lib/7kaa/" + find . -type d -exec chmod 755 {} \; + + # copy readme + install -D -m644 "${srcdir}/$pkgname-$pkgver/README" "${pkgdir}/usr/share/doc/7kaa/README" + + # main file + install -dm755 "${pkgdir}/usr/lib/${pkgname}/" + install -D -m755 "${srcdir}/${pkgname}-${pkgver}/src/${pkgname}" "${pkgdir}/usr/lib/${pkgname}/${pkgname}" + + # bash script + install -D -m755 "$srcdir/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" + + # desktop entry + install -D -m644 "$srcdir/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -D -m644 "${srcdir}/${pkgname}.ico" "${pkgdir}/usr/share/pixmaps/${pkgname}.ico" +} |