summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a287df2f4c060c9106a6ec718d169681befbab2 (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
33
34
35
# Maintainer: aksr <aksr at t-com dot me>
pkgname=es-shell-git
pkgver=0.9.2.r47.gf879b9e
pkgrel=1
pkgdesc='A extensible shell with higher-order functions, derived from the Plan 9 shell, rc.'
arch=('i686' 'x86_64')
url='https://github.com/wryun/es-shell'
license=('Public Domain')
makedepends=('git')
optdepends=('termcap: for mksignal')
install=${pkgname%-*-*}.install
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}

build() {
	cd "$srcdir/$pkgname"
	libtoolize -qi
	autoreconf
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$pkgname"
	make prefix="$pkgdir/usr" install
	mkdir -p $pkgdir/usr/share/doc/${pkgname%-*}/
	install -m644 README.md initial.es mksignal esdebug \
	  doc/usenix-w93.ps doc/ERRATA doc/TODO "$pkgdir/usr/share/doc/${pkgname%-*}"
	cp -r examples "$pkgdir/usr/share/doc/${pkgname%-*}/"
}