diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-07-14 13:18:58 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-14 16:05:03 +0200 |
commit | 2c21347fe14e9e5638294b7b37cea4606b0ee615 (patch) | |
tree | 506f719d8c30b7e37c8ea23bbc273dadb1c6d569 /community | |
parent | a6aae78d406eeda992384cfc595b0a54538e6aef (diff) | |
download | aports-2c21347fe14e9e5638294b7b37cea4606b0ee615.tar.bz2 aports-2c21347fe14e9e5638294b7b37cea4606b0ee615.tar.xz |
community/incron: modernize APKBUILD
Diffstat (limited to 'community')
-rw-r--r-- | community/incron/APKBUILD | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/community/incron/APKBUILD b/community/incron/APKBUILD index 87abad27f8..2c12cecf67 100644 --- a/community/incron/APKBUILD +++ b/community/incron/APKBUILD @@ -6,10 +6,7 @@ pkgdesc="Inotify cron system" url="http://inotify.aiken.cz" arch="all" license="GPLv2" -depends="" -depends_dev="" -makedepends="$depends_dev argp-standalone" -install="" +makedepends="argp-standalone" subpackages="$pkgname-doc" options="suid" source="http://inotify.aiken.cz/download/incron/incron-$pkgver.tar.bz2 @@ -17,39 +14,20 @@ source="http://inotify.aiken.cz/download/incron/incron-$pkgver.tar.bz2 incrond.initd incron-aarch64.patch " - -_builddir="$srcdir"/incron-$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 -} +builddir="$srcdir/incron-$pkgver" build() { - cd "$_builddir" - make PREFIX=/usr || return 1 + cd "$builddir" + make PREFIX=/usr } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" PREFIX=/usr install || return 1 - install -Dm755 "$srcdir"/incrond.initd "$pkgdir"/etc/init.d/incrond \ - || return 1 - install -Dm644 incron.conf.example "$pkgdir"/etc/incron.conf || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" PREFIX=/usr install + install -Dm755 "$srcdir"/incrond.initd "$pkgdir"/etc/init.d/incrond + install -Dm644 incron.conf.example "$pkgdir"/etc/incron.conf } -md5sums="038190dc64568883a206f3d58269b850 incron-0.5.10.tar.bz2 -2f732aef8ae8b49a0427e1d0d3c5281d fix-headers.patch -07089c4a524ba7d89f75881693ba7647 incrond.initd -02955914e0c8aed4ca3950b109c57a61 incron-aarch64.patch" -sha256sums="852695df1d0c8a1ad182d41c8f8ce1417ac34e7fb6cd01e9c9c6d493c42e759f incron-0.5.10.tar.bz2 -aa69fa1ebfd48e6fba9921f136ac77b68f9b34e6f60b2296c35bdd5b60e5d7ec fix-headers.patch -c7a3c53543db190d2ce63667878c9968f9af7b9eabecbfc1cad7d9b8d937c8e4 incrond.initd -690911bf841f43b5cb05e11d14ee7c2ccf310b9cc4079c02afa32e784b1c3dea incron-aarch64.patch" sha512sums="5d9ae4d4e3929ba16ad06652f21ef319041e13f9b15000d08053a973bef706b5d0137b9235c29049aed1673a2f41379b2b677eeedefacaf68308ad54405e4bfd incron-0.5.10.tar.bz2 ab25665b6b736b81bfa84b1092608e0f2c15484a2e920b1859827bd870d04a894760020be6ab27226ff8cb75bab1ef8dc34d006a4531fc658e32137374412c9c fix-headers.patch 458d5a4e9ab062b3e9a7dddf46c25bae431ec6c93862304f444e94cfb41b28e9ae21d5e621e94ce9cf55b26878d8fe978c19eeaa473779772a24adf709fd4cd8 incrond.initd |