mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:47:14 +08:00
34 lines
887 B
Bash
34 lines
887 B
Bash
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/tre
|
|
|
|
pkgname=tre
|
|
pkgver=0.8.0
|
|
pkgrel=2
|
|
arch=('x86_64')
|
|
pkgdesc="POSIX compliant regexp matching library. Includes agrep for aproximate grepping."
|
|
url="http://laurikari.net/tre/index.html"
|
|
depends=('glibc')
|
|
license=('custom:BSD')
|
|
source=(http://laurikari.net/tre/$pkgname-$pkgver.tar.bz2)
|
|
md5sums=('b4d3232593dadf6746f4727bdda20b41')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
./configure --prefix=/usr --enable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -d "$pkgdir/usr/share/doc/$pkgname"
|
|
|
|
cd doc
|
|
for f in default.css tre-api.html tre-syntax.html; do
|
|
install -Dm644 "$f" "$pkgdir/usr/share/doc/$pkgname/$f"
|
|
done
|
|
}
|