summaryrefslogtreecommitdiff
path: root/~xihh/libtre/PKGBUILD
blob: ad111c45d79c99625212accde4efc0e4d6b8a269 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy>
pkgbase='libtre'
pkgname=('libtre' 'python2-tre')
pkgver=0.8.0
pkgrel=1
pkgdesc="The free and portable approximate regex matching library."
arch=('i686' 'x86_64' 'mips64el')
url="http://laurikari.net/tre/download/"
license=('custom:BSD2')
groups=()
depends=()
makedepends=('python' 'python2')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("http://laurikari.net/tre/tre-${pkgver}.tar.bz2")
md5sums=('b4d3232593dadf6746f4727bdda20b41')
noextract=()

build() {
  cd "$srcdir/tre-$pkgver"
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/tre-$pkgver"
  make -k check || true # some errors expected
}

package_libtre() {
  cd "$srcdir/tre-$pkgver"
  make DESTDIR="$pkgdir/" install
}

package_python2-tre() {
  depends=('libtre')
  cd "$srcdir/tre-$pkgver/python"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}