mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 08:47:13 +08:00
adding tre
This commit is contained in:
parent
9592b4aaeb
commit
f54709ab99
35
tre/PKGBUILD
Normal file
35
tre/PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# Platform Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=tre
|
||||
pkgver=0.8.0
|
||||
pkgrel=1
|
||||
arch=('i686' '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')
|
||||
options=('!libtool')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/$pkgname-$pkgver
|
||||
./configure --prefix=/usr --enable-static || return 1
|
||||
make || return 1
|
||||
make DESTDIR=$pkgdir install || return 1
|
||||
install -Dm644 ${srcdir}/$pkgname-$pkgver/LICENSE \
|
||||
${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
|
||||
install -d ${pkgdir}/usr/share/doc/$pkgname
|
||||
cd doc
|
||||
for _i in default.css tre-api.html tre-syntax.html
|
||||
do
|
||||
install -Dm644 ${_i} ${pkgdir}/usr/share/doc/$pkgname/${_i}
|
||||
done || return 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user