summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCarsten Feuls2017-02-14 16:47:33 +0100
committerCarsten Feuls2017-02-14 16:47:33 +0100
commit8cc6c513890bfa715fd2b0e96c909d43ec4036a8 (patch)
tree5e2a4142edce2238c05522d431bda02a40cce963 /PKGBUILD
parent416d37bf63ff8a98f64bebea88c420649ff5d355 (diff)
downloadaur-8cc6c513890bfa715fd2b0e96c909d43ec4036a8.tar.gz
Change to git checkout
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 58c4792cb217..d22233bfd94a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,26 +2,32 @@
pkgname=pg_top
pkgver=3.7.0
-pkgrel=2
+pkgrel=3
pkgdesc='top-like app for monitoring PostgreSQL backends (previously known as ptop)'
arch=('i686' 'x86_64' 'armv5h' 'armv6h' 'armv7h')
license=('BSD') # original BSD license
url='http://ptop.projects.postgresql.org/'
depends=('postgresql-libs')
-source=("http://pgfoundry.org/frs/download.php/3504/$pkgname-$pkgver.tar.bz2")
+source=('git+git://git.postgresql.org/git/pg_top.git')
+sha512sums=('SKIP')
+
+prepare() {
+ cd ${srcdir}/${pkgname}
+ git checkout v$pkgver
+}
+
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- LDFLAGS="-lncurses $LDFLAGS"
- ./configure --prefix=/usr
- make
+ cd ${srcdir}/${pkgname}
+ LDFLAGS="-lncurses $LDFLAGS"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}" install
- install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}/"
- install -D -m644 README HISTORY FAQ "${pkgdir}/usr/share/doc/${pkgname}/"
+ cd ${srcdir}/${pkgname}
+ make DESTDIR="${pkgdir}" install
+ install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -D -m644 README HISTORY FAQ "${pkgdir}/usr/share/doc/${pkgname}/"
}
-sha512sums=('509cd3ce65a9b549097eaab5ae27106fa469cdeb4f37950564654f3df01390e1a771c8fa4f5858c3e4c1e76470b6c0fd9b07e8268564f59285e30bf824d7c4ec')