PKGBUILDs/community/postgresql-tsearch2/PKGBUILD
2009-10-09 21:15:33 -05:00

24 lines
790 B
Bash

# $Id: PKGBUILD 2891 2009-09-22 16:29:29Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=postgresql-tsearch2
pkgver=8.4.1
pkgrel=1
pkgdesc="tsearch2 for postgresql"
arch=('i686' 'x86_64')
url="http://www.postgresql.org/"
license=('custom')
depends=('postgresql')
options=('!makeflags')
source=(ftp://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
md5sums=('f2015af17bacbbfe140daf0d1067f9c9')
build() {
cd ${startdir}/src/postgresql-$pkgver
./configure --prefix=/usr --with-openssl --datadir=/usr/share/postgresql
cd ${startdir}/src/postgresql-${pkgver}/contrib/tsearch2
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
install -D -m644 ../../COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/COPYRIGHT
}