summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76c245f36f86035cfea7897524344a316a965dc6 (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
# Maintainer: Simon Lemay <contact+archlinux@simonlemay.net>
# Contributor: Jim Pryor <profjim@jimpryor.net>

pkgname=chicken-readline
_pkgname=readline
pkgver=4.1.4
pkgrel=1
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.
    find "$pkgdir/usr" -name "$_pkgname.setup-info" -exec sed -e "s|$pkgdir||g" -i {} \;
}