summaryrefslogtreecommitdiff
path: root/core/libedit/PKGBUILD
blob: e6c2ff4f1cc6d336b1faa1eccbf4aa12465944b5 (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
28
29
# $Id: PKGBUILD 112952 2011-03-07 23:45:40Z bisson $
# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Roman Cheplyaka <roma@ro-che.info>

pkgname=libedit
pkgver=20110227_3.0
pkgrel=1
pkgdesc='Command line editor library providing generic line editing, history, and tokenization functions'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.thrysoee.dk/editline/'
license=('BSD')
depends=('ncurses')
source=("http://www.thrysoee.dk/editline/libedit-${pkgver/_/-}.tar.gz")
sha1sums=('afe84b9e16fc903d5a3eceda90013d7ad03db794')
options=('!libtool')

build() {
	cd "${srcdir}/$pkgname-${pkgver/_/-}"
	./configure --prefix=/usr --enable-widec --enable-static=no
	make
}

package() {
	cd "${srcdir}/$pkgname-${pkgver/_/-}"
	make prefix="$pkgdir"/usr install

	cp "$pkgdir"/usr/share/man/man3/editline.3 "$pkgdir"/usr/share/man/man3/el.3
	install -D -m0644 COPYING "$pkgdir"/usr/share/licenses/libedit/LICENSE
}