updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pgtune / PKGBUILD
blobc3a2d7733e6eb280855ca02bce91d26c704fa674
1 # Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>
2 pkgname=pgtune
3 pkgver=0.9.3
4 pkgrel=1
5 pkgdesc="A tool to tune the config file for PostgreSQL"
6 arch=(any)
7 url="http://pgfoundry.org/projects/pgtune/"
8 license=('BSD')
9 depends=(python)
10 source=($pkgname-$pkgver.tar.gz::'http://pgfoundry.org/frs/download.php/2449/')
11 md5sums=('a765e0fc120bad2828167004b277f2d0')
12 build () {
13   cd "$srcdir/$pkgname-$pkgver"
14   sed -e s,/usr/bin/python,/usr/bin/python2,g -i pgtune
17 package() {
18   cd "$srcdir/$pkgname-$pkgver"
20   mkdir -p "$pkgdir/usr/bin"
21   install -D -m 555 pgtune "$pkgdir/usr/bin/pgtune"
22   mkdir -p "$pkgdir/usr/share/pgtune/settings/"
23   cp pg_settings* "$pkgdir/usr/share/pgtune/settings/"
24   install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
25   echo "build done!"
28 # vim:set ts=2 sw=2 et: