aboutsummaryrefslogtreecommitdiff
path: root/pkgbuild/readline/PKGBUILD
blob: c94ecf938ba68b9741b081f8249ef958eff7c7b4 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Joseph Hunkeler <jhunk@stsci.edu>
pkgname=readline
pkgver=7.0
pkgrel=1
epoch=
pkgdesc="GNU readline library"
arch=('x86_64')
url="https://www.gnu.org/software/readline"
license=('GPL')
groups=('base-devel')
depends=('gettext')
makedepends=('m4' 'libtool')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
options=('!docs')
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('205b03a87fc83dab653b628c59b9fc91')

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=$BUILD_PREFIX --with-curses
  make
}

check() {
  cd "$pkgname-$pkgver"
  make -k check
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  find $pkgdir -type f ! -perm -u+w -print | xargs -n1 chmod u+w
  fix_rpath
}
# vim:set ts=2 sw=2 et: