diff options
author | Jan Alexander Steffens (heftig) | 2022-03-11 22:29:04 +0100 |
---|---|---|
committer | Jan Alexander Steffens (heftig) | 2022-03-11 22:32:24 +0100 |
commit | f968eb467656d5716211478da331d1b8aaa804d9 (patch) | |
tree | 24d91d4b7a2c8e9c740da02fb36a62ecd70952d8 | |
parent | 3965d3c95db64c8058183acd8d3b04e0e6d3e054 (diff) | |
download | aur-f968eb467656d5716211478da331d1b8aaa804d9.tar.gz |
2.1.20220309+r4+g425fe65-1
- Remove unnecessary pixmap.
- Avoid rebuilding during make install by setting the version.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 16 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = opentyrian-git pkgdesc = Open-source port of the DOS shoot-em-up Tyrian - pkgver = 2.1.20220309 + pkgver = 2.1.20220309+r4+g425fe65 pkgrel = 1 epoch = 1 url = https://github.com/opentyrian/opentyrian @@ -1,7 +1,7 @@ # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> pkgname=opentyrian-git -pkgver=2.1.20220309 +pkgver=2.1.20220309+r4+g425fe65 pkgrel=1 epoch=1 pkgdesc="Open-source port of the DOS shoot-em-up Tyrian" @@ -23,16 +23,27 @@ pkgver() { git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g' } +prepare() { + cd opentyrian +} + +_make() { + make prefix=/usr \ + OPENTYRIAN_VERSION="$pkgver-$pkgrel" VCS_IDREV=false \ + "$@" +} + build() { cd opentyrian - make prefix=/usr all + _make all } package() { cd opentyrian - make DESTDIR="$pkgdir" prefix=/usr install + _make DESTDIR="$pkgdir" install - install -Dt "$pkgdir/usr/share/applications" -m644 linux/opentyrian.desktop + # Install all icons, not just one + rm -r "$pkgdir/usr/share/pixmaps" for _x in 22 24 32 48 128; do install -Dm644 "linux/icons/tyrian-$_x.png" \ "$pkgdir/usr/share/icons/hicolor/${_x}x${_x}/apps/opentyrian.png" |