summaryrefslogtreecommitdiff
path: root/user/libev/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-07 04:58:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-07 04:58:33 -0500
commit775df51b567e7e4c541f89baa5c082aefde0dc74 (patch)
treeaa7e50e024fd8c30292d0038db9b13038156f7e8 /user/libev/APKBUILD
parent41a3a31af577ecab87cd15c85c97677a61fdd3d4 (diff)
downloadpackages-775df51b567e7e4c541f89baa5c082aefde0dc74.tar.gz
packages-775df51b567e7e4c541f89baa5c082aefde0dc74.tar.bz2
packages-775df51b567e7e4c541f89baa5c082aefde0dc74.tar.xz
packages-775df51b567e7e4c541f89baa5c082aefde0dc74.zip
user/libev: pull in, fix, modernise
Diffstat (limited to 'user/libev/APKBUILD')
-rw-r--r--user/libev/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/libev/APKBUILD b/user/libev/APKBUILD
new file mode 100644
index 000000000..d1b32c7da
--- /dev/null
+++ b/user/libev/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=libev
+pkgver=4.24
+pkgrel=0
+pkgdesc="Event dispatch library"
+url="http://software.schmorp.de/pkg/libev.html"
+arch="all"
+options="!check" # No test suite.
+license="BSD-2-Clause OR GPL-2.0+"
+makedepends="$depends_dev autoconf automake libtool"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://dist.schmorp.de/${pkgname}/Attic/${pkgname}-${pkgver}.tar.gz
+ libev-4.11-Add-pkgconfig-support.patch
+ "
+
+prepare() {
+ default_prepare
+ libtoolize --force && aclocal -I m4 && autoheader && autoconf \
+ && automake --add-missing
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+ rm "$pkgdir"/usr/include/event.h
+}
+
+sha512sums="e4cb3b5dd4b9828d5b8da840c73ae4604258a8c4330aafa5472298b83bf944628f36918f0ddd47d9069d255639f0b24a2cf8d349f0644ffd50de823bcb54a31a libev-4.24.tar.gz
+b5bc1b5ed1e605cd45a01adce70c1a97188c0b46a36333f12eccd4407c95d96f18adff90ee8c5733c1783a36b4adc5ef67d6b470104339a1ac5c4539a2a4599e libev-4.11-Add-pkgconfig-support.patch"