blob: 4a160f4622b1136d704b5550945ec3d7b3fb27f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Jan Claußen <jan dot claussen10 at web dot de>
pkgname=pcalc-git
_pkgname=${pkgname%-git}
pkgver=v5.r1.gf7a55ad
pkgrel=1
pkgdesc="A command-line programmer's calculator handling HEX/DEC/OCT/BIN"
arch=('any')
url=https://github.com/vapier/pcalc
license=('GPL')
depends=('glibc')
conflicts=('pcalc')
source=("$_pkgname::git+$url")
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
git describe --long --tags | sed 's/-/.r/;s/-/./'
}
build() {
cd "$srcdir/${_pkgname}"
make -j${nproc}
}
package() {
cd "$srcdir/${_pkgname}"
install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 EXAMPLE "$pkgdir/usr/share/doc/$pkgname/EXAMPLES"
}
|