diff options
author | Azat Khuzhin | 2017-08-23 16:16:23 +0300 |
---|---|---|
committer | Azat Khuzhin | 2017-08-23 16:16:23 +0300 |
commit | a4fbef3867ab45dc03c0ddb876122bd73f35eac7 (patch) | |
tree | 5dc3cd6021fda5815358a4bce31661aa6495913d | |
download | aur-libevhtp2-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d64245bd8a42 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = libevhtp2-git + pkgdesc = A more flexible replacement for libevent's httpd API (git develop branch). + pkgver = 1.2.4.r156.ge30bb07 + pkgrel = 1 + url = https://github.com/azat/libevhtp + arch = i686 + arch = x86_64 + arch = armv5te + arch = armv6h + arch = armv7h + license = BSD + makedepends = git + makedepends = cmake + depends = libevent-git>=2.0.0 + conflicts = libevhtp-git + conflicts = libevhtp + options = staticlibs + source = git://github.com/azat/libevhtp#branch=libevhtp2-azat + sha256sums = SKIP + +pkgname = libevhtp2-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3cf0db2a1a07 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +pkgname=libevhtp2-git +_gitname=libevhtp +pkgver=1.2.4.r156.ge30bb07 +pkgrel=1 +pkgdesc="A more flexible replacement for libevent's httpd API (git develop branch)." +arch=('i686' 'x86_64' 'armv5te' 'armv6h' 'armv7h') +url="https://github.com/azat/libevhtp" +license=('BSD') +conflicts=('libevhtp-git' 'libevhtp') +depends=('libevent-git>=2.0.0') +makedepends=('git' 'cmake') +optdepends=() +provides=() +options=('staticlibs') + +source=("git://github.com/azat/libevhtp#branch=libevhtp2-azat") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build () { + cd "$srcdir/$_gitname" + cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_INSTALL_PREFIX=/usr ./ + make +} + +package () { + #install library and header files + cd "$srcdir/$_gitname" + echo "$pkgdir" + make DESTDIR="$pkgdir/" install + + if [ ! -d $pkgdir/usr/include/evhtp2 ]; then + mkdir -p $pkgdir/usr/include/evhtp2 + mv $pkgdir/usr/include/*.h $pkgdir/usr/include/evhtp2/ + fi + + #copy license over + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp LICENSE $pkgdir/usr/share/licenses/$pkgname/ +} |