diff options
author | Yidaozhan Ya | 2023-06-25 22:02:19 +0800 |
---|---|---|
committer | Yidaozhan Ya | 2023-06-25 22:02:19 +0800 |
commit | 087e907a5e932b133c71adc2e50a92007f451fa9 (patch) | |
tree | 5891033f088119c0b979839c83370f32973e8fb2 /PKGBUILD | |
parent | 52c2a9a782ec235cd9c234df1535debec15631d2 (diff) | |
download | aur-mari0-ae.tar.gz |
[fix] add git for dependency & change pkgver to git rev
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,17 +1,22 @@ # Maintainer: YidaozhanYa <yidaozhan_ya@outlook.com> pkgname=mari0-ae -pkgver=13.1 -pkgrel=2 +pkgver=r569.f6b0877 +pkgrel=1 pkgdesc="Mari0: Alesan99's Entities" arch=('i386' 'x86_64') url="https://github.com/alesan99/mari0_ae" license=('custom') depends=('love10') -makedepends=('zip') +makedepends=('zip' 'git') conflicts=('mari0') source=("git+https://github.com/alesan99/mari0_ae.git") sha256sums=("SKIP") +pkgver() { + cd "${srcdir}/mari0_ae" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + package() { cd "${srcdir}/mari0_ae" zip -r mari0-ae.love ./ |