summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf414944f142e3a909b778c5a939c08c19c3d793 (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: Adrián Pérez de Castro
pkgdesc='Extensible Shell derived from Plan9 rc'
pkgname=es
pkgver=0.9.2
pkgrel=1
arch=(x86_64)
url=http://wryun.github.io/es-shell/
depends=(readline termcap)
makedepends=(bison)
license=('custom:Public Domain')
install=es.install
source=("https://github.com/wryun/es-shell/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
b2sums=('7d317e046f7211eb4ce3c79573a5f6809e9e5928f63b3c3a08fe07c27af5cf50f2ecd30f7406a787d8a228b263e18bbc35d9025f7b94223b5b2b7d2f32eb730e')

build () {
	CFLAGS="-Wno-unused-const-variable" ./configure --prefix=/usr --with-readline
	make
}

package () {
	make DESTDIR="$pkgdir" install

	# Documentation and examples.
	install -D -m644 README.md \
		"${pkgdir}/usr/share/licenses/${pkgname}/README.md"
	install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
		doc/ERRATA doc/usenix-w93.ps doc/es-list.gz
	install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname}/examples" \
		examples/*.*
	cp -r examples/friedman "${pkgdir}/usr/share/doc/${pkgname}/examples"
}

check () {
	make trip
}