diff options
author | aksr | 2023-01-27 17:09:46 +0100 |
---|---|---|
committer | aksr | 2023-01-27 17:09:46 +0100 |
commit | d8ff632c9f734c4f189d9dd9910ca203a030c532 (patch) | |
tree | 7f3ad66623c14e36aaac3719503477daee20b8e2 | |
parent | 9e4757915257221dd0b9ac95af675435febedb03 (diff) | |
download | aur-d8ff632c9f734c4f189d9dd9910ca203a030c532.tar.gz |
Add pkgver() and manpage...
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = spitbol-git pkgdesc = An extremely high performance implementation of the SNOBOL4 language that brings raw power and speed to non-numeric computation. - pkgver = 4.0 + pkgver = 4.0.r1351.155a3da pkgrel = 1 url = https://github.com/spitbol/x64 arch = i686 @@ -1,6 +1,6 @@ # Maintainer: aksr <aksr at t-com dot me> pkgname=spitbol-git -pkgver=4.0 +pkgver=4.0.r1351.155a3da pkgrel=1 pkgdesc='An extremely high performance implementation of the SNOBOL4 language that brings raw power and speed to non-numeric computation.' url='https://github.com/spitbol/x64' @@ -10,6 +10,13 @@ makedepends=('git' 'nasm') source=("$pkgname::git+$url" 'git+https://github.com/spitbol/spitbol-docs') md5sums=('SKIP' 'SKIP') +pkgver() { + cd "$srcdir/$pkgname" + printf "%s.r%s.%s" \ + "$(git describe --tags | sed 's/^V//;s/-.*//')" \ + "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { cd "$srcdir/${pkgname}" make clean @@ -28,8 +35,8 @@ package() { install -D -m755 sbl $pkgdir/usr/bin/spitbol install -D -m644 README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE + install -D -m644 spitbol.1 $pkgdir/usr/share/man/man1/spitbol.1 cd "$srcdir/${pkgname%-*}-docs" install -D -m644 green-book.pdf $pkgdir/usr/share/doc/${pkgname%-*}/green-book.pdf install -D -m644 spitbol-manual-v3.7.pdf $pkgdir/usr/share/doc/${pkgname%-*}/spitbol-manual-v3.7.pdf - install -D -m644 M.md $pkgdir/usr/share/doc/${pkgname%-*}/M.md } |