summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Lemay2015-06-14 18:06:03 -0400
committerSimon Lemay2015-06-14 18:06:03 -0400
commitcad920232ca342c2983d4c7c7192d021a2fe86fe (patch)
tree3b3fbbc160fcdd5d4706d9e043200fbd4925b4b2
downloadaur-cad920232ca342c2983d4c7c7192d021a2fe86fe.tar.gz
Import the package
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD28
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..62b2af7c828
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = chicken-readline
+ pkgdesc = An interface to the GNU readline library
+ pkgver = 3.1.1
+ pkgrel = 2
+ url = http://wiki.call-cc.org/eggref/4/readline
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = chicken
+ depends = readline
+
+pkgname = chicken-readline
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5bdc23151f9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Simon Lemay <contact+archlinux@simonlemay.net>
+# Contributor: Jim Pryor <profjim@jimpryor.net>
+
+pkgname=chicken-readline
+_pkgname=readline
+pkgver=3.1.1
+pkgrel=2
+pkgdesc='An interface to the GNU readline library'
+arch=('i686' 'x86_64')
+url='http://wiki.call-cc.org/eggref/4/readline'
+license=('GPL')
+depends=('chicken' 'readline')
+
+build() {
+ cd "$srcdir"
+ if [[ ! -e "$_pkgname" ]]; then
+ chicken-install -r "$_pkgname:$pkgver"
+ fi
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ chicken-install -p "$pkgdir/usr"
+
+ # Modify setup-info file to use the typical install path.
+ local pfx=$(echo "$pkgdir/usr$pkgdir" | sed -e 's/[]\/$*.^|[]/\\&/g')
+ find "$pkgdir/usr" -name "${_pkgname}.setup-info" -exec sed -e "s/$pfx//g" -i {} \;
+}