archrelease: copy trunk to community-any
[ArchLinux/community.git] / editline / trunk / PKGBUILD
bloba19b6e755e2db199aa21550979bb4cb985f792e6
1 # Maintainer: George Rawlinson <george@rawlinson.net.nz>
2 # Contributor: Immae <ismael.bouya@normalesup.org>
4 pkgname=editline
5 pkgver=1.17.1
6 pkgrel=2
7 pkgdesc='A readline() replacement for UNIX without termcap (ncurses)'
8 arch=('x86_64')
9 url='http://troglobit.com/editline.html'
10 license=('BSD')
11 install="$pkgname.install"
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/troglobit/$pkgname/archive/$pkgver.tar.gz")
13 sha512sums=('6fd8951a490e0a3f30bb20d775036f622e583042d6dc315d657bb9fdad76b3f4e219290f24ab497209d6143a56dd1d227152ba0c40e7912b8a443ab50f9b05dd')
15 build () {
16   cd "$pkgname-$pkgver"
17   ./autogen.sh
18   ./configure --prefix=/usr
19   make
22 package() {
23   cd "$pkgname-$pkgver"
24   make DESTDIR="$pkgdir" install
25   
26   # avoid libedit conflict
27   mv "$pkgdir"/usr/share/man/man3/editline{,-troglobit}.3
29   # license
30   install -Dm0644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
32   # additional documentation
33   cp -vrt "$pkgdir/usr/share/doc/$pkgname" docs