aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-12-20 01:27:07 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-12-20 03:33:31 +0000
commitdf4d00dd6307d0a981d3a6477aade183c87164a0 (patch)
tree1ed20bed24f23c562486ebdfe4dbffd960fdc5c2
parent3959c74599c54b22d7c31032bb9fd28f48da7b3d (diff)
downloadaports-df4d00dd6307d0a981d3a6477aade183c87164a0.tar.gz
aports-df4d00dd6307d0a981d3a6477aade183c87164a0.tar.bz2
aports-df4d00dd6307d0a981d3a6477aade183c87164a0.tar.xz
testing/swaks: modernize
-rw-r--r--testing/swaks/APKBUILD23
1 files changed, 6 insertions, 17 deletions
diff --git a/testing/swaks/APKBUILD b/testing/swaks/APKBUILD
index 885bcccd7f..10fbca3c27 100644
--- a/testing/swaks/APKBUILD
+++ b/testing/swaks/APKBUILD
@@ -2,30 +2,19 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=swaks
pkgver=20201014.0
-pkgrel=0
+pkgrel=1
pkgdesc="Swiss Army Knife for SMTP"
-url="http://www.jetmore.org/john/code/swaks/"
+url="https://www.jetmore.org/john/code/swaks/"
+license="GPL-2.0-or-later"
arch="noarch"
-license="GPL-2.0"
+options="!check" # tarball does not contain test suite
depends="perl"
subpackages="$pkgname-doc"
-source="http://www.jetmore.org/john/code/swaks/files/$pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
-
-build() {
- cd "$builddir"
- return 0
-}
+source="https://www.jetmore.org/john/code/swaks/files/swaks-$pkgver.tar.gz"
package() {
- cd "$builddir"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
-}
-
-doc() {
- cd "$builddir"
- mkdir -p $subpkgdir/usr/share/doc/$pkgname
- mv doc/* $subpkgdir/usr/share/doc/$pkgname
+ install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname doc/*
}
sha512sums="8a4e8dc810a9c5943afdbc4db7130e110c42e211d6927ce1cdbab6f81fa49c31490e6c3668ec3cea79580c07b281ce30901b3b4a71325951167158cc9d70d9cc swaks-20201014.0.tar.gz"