blob: 4a7f8fefc2e7b5fe7d4071ebab5e6617b91ec37b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer : MorsMortium <morsmortium@disroot.org>
_pkgname=hexon
pkgname=${_pkgname}-git
pkgver=491.f160b5f
pkgrel=1
pkgdesc='heXon is a free and open source twin-stick-shooter created using the Dry game engine.'
arch=('any')
url="https://gitlab.com/luckeyproductions/games/${_pkgname}"
license=('GPL2')
depends=('dry')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('git' 'qt5-base')
sha512sums=('SKIP')
source=("${pkgname}::git+${url}.git")
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
rm -f Dry
ln -s /opt/dry/ Dry
qmake heXon.pro "DATADIR=/usr/share"
make
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm 644 hexon.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/hexon.svg
install -Dm 755 hexon ${pkgdir}/usr/bin/hexon
install -Dm 755 hexon.desktop ${pkgdir}/usr/share/applications/hexon.desktop
mkdir -p ${pkgdir}/usr/share/luckey/hexon
cp -R "${srcdir}/${pkgname}/Resources/." ${pkgdir}/usr/share/luckey/hexon/
}
|