summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/rc/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/rc/APKBUILD b/user/rc/APKBUILD
new file mode 100644
index 000000000..c949968fa
--- /dev/null
+++ b/user/rc/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=rc
+pkgver=1.7.4
+pkgrel=0
+pkgdesc="a reimplementation of the Plan 9 shell"
+url="http://tobold.org/article/rc"
+arch="all"
+license="Zlib"
+depends=""
+makedepends="libedit-dev"
+install=""
+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 \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/ \
+ --localstatedir=/var \
+ --with-edit=edit
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ mkdir ${pkgdir}/usr/share/man
+ mv ${pkgdir}/usr/share/man1 ${pkgdir}/usr/share/man
+}
+
+sha512sums="49e124207b5370b88b8fba0376dda33451451a58bfb85fabfc06ae59eb88fedf38d7aeaaf292e4f380e2c00efc8301ba68d12180923186d1c53ef94f78f7e435 rc-1.7.4.tar.gz"