aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rc
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-09-28 18:14:01 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2015-09-28 18:14:01 +0200
commit2e72615635d4baf7384aa25670e660d725a07782 (patch)
treede49df0a525cd9a06430e55e5dfd2d880a04302f /testing/rc
parentaaa90231b36a4c23e4c655893f95de721330ecd1 (diff)
downloadaports-2e72615635d4baf7384aa25670e660d725a07782.tar.bz2
aports-2e72615635d4baf7384aa25670e660d725a07782.tar.xz
testing/rc: new aport
Diffstat (limited to 'testing/rc')
-rw-r--r--testing/rc/APKBUILD44
-rw-r--r--testing/rc/rc.post-install3
-rw-r--r--testing/rc/rc.pre-deinstall3
3 files changed, 50 insertions, 0 deletions
diff --git a/testing/rc/APKBUILD b/testing/rc/APKBUILD
new file mode 100644
index 000000000..da1a29326
--- /dev/null
+++ b/testing/rc/APKBUILD
@@ -0,0 +1,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"
diff --git a/testing/rc/rc.post-install b/testing/rc/rc.post-install
new file mode 100644
index 000000000..4cf16eca8
--- /dev/null
+++ b/testing/rc/rc.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+add-shell '/bin/rc'
+exit 0
diff --git a/testing/rc/rc.pre-deinstall b/testing/rc/rc.pre-deinstall
new file mode 100644
index 000000000..83a26d625
--- /dev/null
+++ b/testing/rc/rc.pre-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/bin/rc'
+exit 0