summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fb34a556f795a412ce202c61312e1599b7e6798 (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
pkgname=libevent-git
pkgver=2.1.5.beta.r27.g31c6d45
pkgrel=1
pkgdesc="An event notification library"
arch=('i686' 'x86_64')
url="http://libevent.org/"
license=('BSD')
depends=('openssl')
optdepends=('python2: to use event_rpcgen.py')
provides=(libevent)
conflicts=(libevent)
replaces=(libevent)
source=(git+https://github.com/libevent/libevent)
md5sums=('SKIP')

pkgver() {
  cd libevent
  git describe --long | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd libevent
  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd libevent
  make DESTDIR="${pkgdir}" install
  install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/libevent/LICENSE
}