blob: cabef729e5d396df157b880c5f708df11f14713a (
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
|
# Maintainer : MorsMortium <morsmortium@disroot.org>
_pkgname=tux
pkgname=${_pkgname}-git
pkgver=r329.5bc252c
pkgrel=1
pkgdesc='A 3D platform game featuring the famous Linux mascot.'
arch=('x86_64')
url="https://gitlab.com/luckeyproductions/games/${_pkgname}"
license=('GPL-2.0-or-later' 'CC0-1.0' 'CC-BY-3.0' 'CC-BY-4.0' 'CC-BY-SA-4.0')
depends=('dry' 'hicolor-icon-theme')
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}"
DRY_HOME=/opt/dry qmake Tux.pro "DATADIR=/usr/share"
make
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm 644 ${_pkgname}.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg
install -Dm 755 ${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
install -Dm 755 ${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
mkdir -p ${pkgdir}/usr/share/luckey/${_pkgname}
cp -R "${srcdir}/${pkgname}/Resources/." ${pkgdir}/usr/share/luckey/${_pkgname}/
}
|