summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2016-04-24 12:00:13 +0200
committeraksr2016-04-24 12:00:13 +0200
commitdc77a58fce344c99fa8ad075fa84f2bb5f67ef85 (patch)
treeb0079af5ae00f3ad99a6845b2ab05158888f6d61
downloadaur-dc77a58fce344c99fa8ad075fa84f2bb5f67ef85.tar.gz
Start.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD46
-rw-r--r--rc-git.install8
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5139876ea95
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Sun Apr 24 10:00:13 UTC 2016
+pkgbase = rc-git
+ pkgdesc = Independent re-implementation for Unix of the Plan 9 shell (from circa 1992).
+ pkgver = 1.7.4.r499.c95bdf7
+ pkgrel = 1
+ url = https://github.com/rakitzis/rc
+ install = rc-git.install
+ arch = i686
+ arch = x86_64
+ license = zlib
+ makedepends = git
+ source = rc-git::git+https://github.com/rakitzis/rc.git
+ md5sums = SKIP
+
+pkgname = rc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..abe05962ce0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=rc-git
+pkgver=1.7.4.r499.c95bdf7
+pkgrel=1
+epoch=
+pkgdesc="Independent re-implementation for Unix of the Plan 9 shell (from circa 1992)."
+arch=('i686' 'x86_64')
+url="https://github.com/rakitzis/rc"
+license=('zlib')
+groups=()
+depends=('')
+makedepends=('git')
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+changelog=
+install=${pkgname}.install
+source=("$pkgname::git+https://github.com/rakitzis/rc.git")
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ # there must be a cleaner way?
+ VER=$(awk 'NR==2 {print $2}' configure.ac | sed 's/\[//;s/\]//;s/)//')
+ printf "$VER.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ autoreconf -vi
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 EXAMPLES $pkgdir/usr/share/doc/${pkgname%-*}/EXAMPLES
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/${pkgname%-*}/COPYING
+}
+
diff --git a/rc-git.install b/rc-git.install
new file mode 100644
index 00000000000..b088081c3c5
--- /dev/null
+++ b/rc-git.install
@@ -0,0 +1,8 @@
+post_install() {
+ grep -qe '^/usr/bin/rc$' etc/shells || echo '/usr/bin/rc' >> etc/shells
+}
+
+pre_remove() {
+ sed -ri '\|^/usr/bin/rc$|d' etc/shells
+}
+