summaryrefslogtreecommitdiffstats
path: root/cower/PKGBUILD
blob: 9198ed8ad2e654e895a99b78619d88faf37d51b8 (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
# Maintainer: Dave Reisner <d@falconindy.com>

pkgname=cower
pkgver=2.9.9
pkgrel=2
pkgdesc="A simple AUR agent with a pretentious name"
arch=('i686' 'x86_64')
url="http://github.com/falconindy/cower"
license=('GPL')
depends=('curl' 'yajl' 'pacman')
makedepends=('perl')
source=("https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.gz"
        "set_curlopt_nosignal.patch")
md5sums=('557c52ccca82c89118d892bd7a3e5786'
         '2d6b5c0a2a11ce13736ec566365cbae5')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  if readelf -s /usr/lib/libalpm.so | grep -q alpm_find_satisfier; then
    PMCHECK=-D_HAVE_ALPM_FIND_SATISFIER
  fi

  patch -Np1 < "$srcdir"/set_curlopt_nosignal.patch

  make PMCHECK=$PMCHECK
}

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

# vim: ft=sh syn=sh