commit 495c6a1d8e5fc7c09e45262447e08a5c009f6161 Author: Aaron Lindsay Date: Tue Apr 2 08:50:15 2013 -0400 Initial commit - v 1.1.6 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..894775a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Aaron Lindsay + +# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname +pkgname=libevhtp + +# The version number for the software +pkgver=1.1.6 + +#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase +pkgrel=1 + +# The description of the package, should be about 80 characters long (one line) +pkgdesc="A more flexible replacement for libevent's httpd API." + +# The type of processor this software can build and work on. See PKGBUILD#arch +arch=('i686' 'x86_64') + +# The official website for the software your PKGBUILD will install +url="https://github.com/ellzey/libevhtp" + +# The License that the software is released under. See PKGBUILD#license +license=('BSD') + +# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator +depends=('libevent>=2.0.0') + +# Packages that must be installed to build the software, but at not necessary to run it +makedepends=('cmake') + +# Optional packages that extend the software's functionality +optdepends=() + +# List of Package names that this PKGBUILD provides. Put modified packages that will be installed here. +provides=() + +# Change the default behavior of makepkg see PKGBUILD#options +options= + +source=("https://github.com/ellzey/libevhtp/archive/${pkgver}.zip") +sha256sums=('75780879a6e221c748e8725ff848493768d237f4c02b30dd811e5f824cd23213') + +build () { + cd "$srcdir/$pkgname-$pkgver" + cmake -DCMAKE_INSTALL_PREFIX=/usr ./ + make libevhtp +} + +package () { + #install library and header files + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + + #copy license over + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp LICENSE $pkgdir/usr/share/licenses/$pkgname/ +}