diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-27 14:15:07 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-27 14:15:07 -0600 |
commit | ccbaf96122ed743f71cfcce0f877ef8b032bc73e (patch) | |
tree | 9d2a5e5a12297d5293a30ac91987a9b5c327b84a | |
parent | 34bd07266f03bc94f4899b0131d6b048712059ec (diff) | |
download | aports-ccbaf96122ed743f71cfcce0f877ef8b032bc73e.tar.bz2 aports-ccbaf96122ed743f71cfcce0f877ef8b032bc73e.tar.xz |
testing/libev: new aport
-rw-r--r-- | testing/libev/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/libev/APKBUILD b/testing/libev/APKBUILD new file mode 100644 index 000000000..e3c3b00a7 --- /dev/null +++ b/testing/libev/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: +pkgname=libev +pkgver=4.03 +pkgrel=0 +pkgdesc="event dispatch library" +url="http://libev.schmorp.de/" +arch="all" +license="BSD GPL" +depends= +depends_dev= +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://dist.schmorp.de/${pkgname}/${pkgname}-${pkgver}.tar.gz" + +_builddir="${srcdir}/${pkgname}-${pkgver}" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="86cd5c1b42fced1bd02c6e0119e9b865 libev-4.03.tar.gz" |