summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9718305bdf2fdfdc54f0037f3220d9f053787ce (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
# Maintainer: John "ShaggyTwoDope" Jenkins <twodopeshaggy at gmail dot com>
pkgname=ppastats
pkgver=1.3.3
pkgrel=2
pkgdesc="A command line tool generates download statistics of an Ubuntu PPA"
arch=('i686' 'x86_64')
url="https://wpitchoune.net/ppastats/"
license=('GPL2')
depends=('json-c' 'curl')
makedepends=('automake' 'autoconf' 'help2man')
source=(https://launchpad.net/~jfi/+archive/ubuntu/ppastats/+files/ppastats_$pkgver.orig.tar.gz
include_stdlib.patch)
md5sums=('47db9a3b20e6dd9694cd3e4b8e462b19'
         '8d1866949eff4921045cc6987d3d4d3c')

build() {
  cd "$srcdir/$pkgname-$pkgver/src"
  patch -p0 < $srcdir/include_stdlib.patch
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

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