diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-03 02:08:53 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-05 08:22:26 +0000 |
commit | f829383aaff2999da75e26223869c6d4bd3f4320 (patch) | |
tree | 2183dfae38b980e29fc7b9b2b3b89f84ec3c71ac /community/swatch | |
parent | 1b22d5065a94e42cfc4ac0b3bb99d08f9f2f7e7f (diff) | |
download | aports-f829383aaff2999da75e26223869c6d4bd3f4320.tar.bz2 aports-f829383aaff2999da75e26223869c6d4bd3f4320.tar.xz |
community/swatch: modernize
Diffstat (limited to 'community/swatch')
-rw-r--r-- | community/swatch/APKBUILD | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/community/swatch/APKBUILD b/community/swatch/APKBUILD index 54124edc81..d4fcfcd1e0 100644 --- a/community/swatch/APKBUILD +++ b/community/swatch/APKBUILD @@ -3,39 +3,42 @@ pkgname=swatch _realname=swatchdog pkgver=3.2.4 -pkgrel=4 +pkgrel=5 pkgdesc="Logfile monitoring tool" url="https://sourceforge.net/projects/swatch/" arch="noarch" -license="GPL" +license="GPL-2.0-only" depends="perl perl-date-calc perl-date-format perl-date-manip perl-file-tail perl-carp-clan" makedepends="perl-dev" -install="" -subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/project/$pkgname/$_realname/$_realname-$pkgver.tar.gz +subpackages="$pkgname-doc $pkgname-openrc" +source=" + $pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/project/$pkgname/$_realname/$_realname-$pkgver.tar.gz swatch.initd swatch.confd - swatchrc" + swatchrc + " + +builddir="$srcdir"/$_realname-$pkgver -_builddir="$srcdir"/$_realname-$pkgver build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make test || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + make test } package() { - cd "$_builddir" make DESTDIR="$pkgdir" install - make realclean || return 1 + make realclean # remove perllocal.pod and .packlist find "$pkgdir" -name perllocal.pod -delete find "$pkgdir" -name .packlist -delete mkdir -p "$pkgdir"/etc/init.d/ "$pkgdir"/etc/conf.d/ \ - "$pkgdir"/etc/$pkgname/ || return 1 + "$pkgdir"/etc/$pkgname/ cp "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname cp "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname @@ -44,14 +47,6 @@ package() { chmod 755 "$pkgdir"/etc/init.d/$pkgname } -md5sums="df4c20ff7d3f6a46a2efd72a42078011 swatch-3.2.4.tar.gz -69695f3a4bfb1096c7d66b5cf99f7273 swatch.initd -a02a10a0266781a1ce16cc3b5e84968c swatch.confd -8a92d37f96982030e0283dc7fe706da8 swatchrc" -sha256sums="5bb644d3750ee89b9aecab797df66b28b9fd174a5f0f96cd62367af8975b4f63 swatch-3.2.4.tar.gz -95f077870c694ea099b45722adb820684e33d6edce48643ea23d64d179962310 swatch.initd -6d538c6c915c14b5820e878876cb2410f782afb8f0a930edd9c941ab4011e9c8 swatch.confd -8569d090eba3465e3f26705bd5ea738c7b35dabeae77b68f25508aee520cfca6 swatchrc" sha512sums="4e0a4e3feed00df0f0d04f94cc090e53e71fa9b20d46236ec41d63b98b5733d80a5941b491cffcbb0b655a9c7d2b5c9423ca7ae043346dbe1b05ee6ab24b9489 swatch-3.2.4.tar.gz 4d274d4875664dee989016be71d8e72583766b88da684a4f0c242ec8d7b213c2a917395ee15cd5d446d2dbbfc9665bb75729e010a8fdcc6ba12985a19354b0ca swatch.initd 493f3e54e6472ee349c3d56537d3ad88405936d6551defa802911625e84a9afabc13c4975e2edfe63e723c48cfdfe09b966e807d05ca218b4cd238889b656fde swatch.confd |