aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rc/APKBUILD
blob: da1a293262362df51eadfe1e8f4fcd85a3633219 (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
36
37
38
39
40
41
42
43
44
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=rc
pkgver=1.7.4
pkgrel=0
pkgdesc="An alternative implementation of the plan 9 rc shell"
url="http://tobold.org/article/rc"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="readline-dev ncurses-dev"
install="$pkgname.post-install $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
source="http://static.tobold.org/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--bindir=/bin \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-edit=gnu \
		|| return 1
	make || return 1
}

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

	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/ || return 1
}

md5sums="f99732d7a8be3f15f81e99c3af46dc95  rc-1.7.4.tar.gz"
sha256sums="5ed26334dd0c1a616248b15ad7c90ca678ae3066fa02c5ddd0e6936f9af9bfd8  rc-1.7.4.tar.gz"
sha512sums="49e124207b5370b88b8fba0376dda33451451a58bfb85fabfc06ae59eb88fedf38d7aeaaf292e4f380e2c00efc8301ba68d12180923186d1c53ef94f78f7e435  rc-1.7.4.tar.gz"