diff options
author | Michel Blanc | 2017-04-17 16:17:34 +0200 |
---|---|---|
committer | Michel Blanc | 2017-04-17 16:17:39 +0200 |
commit | 3254b34bd2595773d941badaa58c1cd04470a83c (patch) | |
tree | 8387ba9ee89ba2e4e7ebec5667dca961488da363 | |
download | aur-3254b34bd2595773d941badaa58c1cd04470a83c.tar.gz |
Initial release
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5cec1ac24484 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = clac + pkgdesc = A command line, stack-based calculator with postfix notation + pkgver = r11.828600b + pkgrel = 1 + url = https://github.com/soveran/clac + arch = i686 + arch = x86_64 + license = BSD + source = clac::git+https://github.com/soveran/clac + sha1sums = SKIP + +pkgname = clac + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d92db2ca1a47 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Michel Blanc <mb@mbnet.fr> + +pkgname=clac +pkgver=0.1.0.r0.gb24478a +pkgrel=1 +pkgdesc='A command line, stack-based calculator with postfix notation' +url='https://github.com/soveran/clac' +arch=('i686' 'x86_64') +license=('BSD') + +source=("clac::git+https://github.com/soveran/clac") +sha1sums=('SKIP') + +#options=('') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$pkgname" + make +} + +package() { + cd "$pkgname" + manprefix="${pkgdir}/usr/share/man" + mkdir -p "${manprefix}/man1" + echo Created ${manprefix}/man1 + make MANPREFIX="${manprefix}" PREFIX="${pkgdir}/usr" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |