aboutsummaryrefslogtreecommitdiffstats
path: root/main/snownews
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-13 19:16:55 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-06 20:30:20 +0000
commitbb886443b62d66033ec698c19431e6805e68d426 (patch)
tree3ed282adcdab1a9ca6c0adfba9733c17919131dd /main/snownews
parentecce10225bfb48726286cbfbeb1b6acb34b9264e (diff)
downloadaports-bb886443b62d66033ec698c19431e6805e68d426.tar.bz2
aports-bb886443b62d66033ec698c19431e6805e68d426.tar.xz
main/snownews: modernize abuild
Diffstat (limited to 'main/snownews')
-rw-r--r--main/snownews/APKBUILD26
1 files changed, 7 insertions, 19 deletions
diff --git a/main/snownews/APKBUILD b/main/snownews/APKBUILD
index a926e99cb9..bc0de3a76b 100644
--- a/main/snownews/APKBUILD
+++ b/main/snownews/APKBUILD
@@ -15,30 +15,18 @@ subpackages="$pkgname-lang $pkgname-doc"
source="https://kiza.eu/media/software/snownews/${pkgname}-${pkgver}.tar.gz
configure.patch"
-_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
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
- ./configure --prefix=/usr || return 1
- make || return 1
+ cd "$builddir"
+ ./configure --prefix=/usr
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="80da8943fc5aa96571924aec0087d4c0 snownews-1.5.12.tar.gz
-1cc8b5571c4d977417b41915f74ffef5 configure.patch"
-sha256sums="26dd96e9345d9cbc1c0c9470417080dd0c3eb31e7ea944f78f3302d7060ecb90 snownews-1.5.12.tar.gz
-597e360414501f0588459316c4b51b905a9d0eec4ce75ce891b2e315f39bbbbc configure.patch"
+
sha512sums="7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220 snownews-1.5.12.tar.gz
d7ed00a401c1963a5619b0b221ae354e5a8a8423f75313e906f43b5a64c099fac8239d7eb1a34d47c284e96b9ad2965f1ecdad58fb28101f7397143847a5e230 configure.patch"