diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 13:01:51 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-06 20:09:47 +0000 |
commit | 4a690d5214929772b9aa82f90e9b457a32ef9634 (patch) | |
tree | 6a12f0c989618efc1195960ec63b8e3669eba742 /main | |
parent | 4cd2056e869921cbccc1b71fccf2f37dc5745480 (diff) | |
download | aports-4a690d5214929772b9aa82f90e9b457a32ef9634.tar.bz2 aports-4a690d5214929772b9aa82f90e9b457a32ef9634.tar.xz |
main/libev: modernize abuild
Diffstat (limited to 'main')
-rw-r--r-- | main/libev/APKBUILD | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/main/libev/APKBUILD b/main/libev/APKBUILD index 341ee0930f..06786027d9 100644 --- a/main/libev/APKBUILD +++ b/main/libev/APKBUILD @@ -7,48 +7,34 @@ pkgdesc="event dispatch library" url="http://libev.schmorp.de/" arch="all" license="BSD GPL" -depends= -depends_dev= makedepends="$depends_dev autoconf automake libtool" -install="" subpackages="$pkgname-dev $pkgname-doc" source="http://dist.schmorp.de/${pkgname}/Attic/${pkgname}-${pkgver}.tar.gz libev-4.11-Add-pkgconfig-support.patch " -_builddir="${srcdir}/${pkgname}-${pkgver}" +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 + default_prepare libtoolize --force && aclocal -I m4 && autoheader&& autoconf \ && automake --add-missing } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --sysconfdir=/etc \ - || return 1 - make || return 1 + --sysconfdir=/etc + make } package() { - cd "$_builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install rm "$pkgdir"/usr/include/event.h } -md5sums="94459a5a22db041dec6f98424d6efe54 libev-4.24.tar.gz -acec6b40b5ebea613fb0829f84e8a48b libev-4.11-Add-pkgconfig-support.patch" -sha256sums="973593d3479abdf657674a55afe5f78624b0e440614e2b8cb3a07f16d4d7f821 libev-4.24.tar.gz -2228eb682631655678e172a647238bf9c00b5ea8e732b45795e45fe5d79e1ffb libev-4.11-Add-pkgconfig-support.patch" sha512sums="e4cb3b5dd4b9828d5b8da840c73ae4604258a8c4330aafa5472298b83bf944628f36918f0ddd47d9069d255639f0b24a2cf8d349f0644ffd50de823bcb54a31a libev-4.24.tar.gz b5bc1b5ed1e605cd45a01adce70c1a97188c0b46a36333f12eccd4407c95d96f18adff90ee8c5733c1783a36b4adc5ef67d6b470104339a1ac5c4539a2a4599e libev-4.11-Add-pkgconfig-support.patch" |