diff options
author | MorsMortium | 2023-12-03 22:26:42 +0100 |
---|---|---|
committer | MorsMortium | 2023-12-03 22:26:42 +0100 |
commit | e1d8ccf6840f80f58b9cd047b0bba1dedda35c36 (patch) | |
tree | afac20ed369f48cbd968abd5c075218c54ef2438 | |
download | aur-e1d8ccf6840f80f58b9cd047b0bba1dedda35c36.tar.gz |
Initial upload
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d966dd9a5b46 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = opensaucer-git + pkgdesc = Mutiny on the mothership + pkgver = r118.3e0306b + pkgrel = 1 + url = https://gitlab.com/luckeyproductions/games/opensaucer + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = qt5-base + depends = dry + provides = opensaucer + conflicts = opensaucer + source = opensaucer-git::git+https://gitlab.com/luckeyproductions/games/opensaucer.git + sha512sums = SKIP + +pkgname = opensaucer-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3786a8f5ac6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer : MorsMortium <morsmortium@disroot.org> + +_pkgname=opensaucer +pkgname=${_pkgname}-git +pkgver=r118.3e0306b +pkgrel=1 +pkgdesc='Mutiny on the mothership' +arch=('x86_64') +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 OpenSaucer.pro "DATADIR=/usr/share" + make +} + +package() { + cd "${srcdir}/${pkgname}" + install -Dm 644 saucer.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/saucer.svg + install -Dm 755 saucer ${pkgdir}/usr/bin/saucer + install -Dm 755 saucer.desktop ${pkgdir}/usr/share/applications/saucer.desktop + mkdir -p ${pkgdir}/usr/share/luckey/saucer + cp -R "${srcdir}/${pkgname}/Resources/." ${pkgdir}/usr/share/luckey/saucer/ +} |