diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-07-26 11:23:34 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-28 23:07:01 +0200 |
commit | 66999878a055457606916bef6821bd60805a0a0a (patch) | |
tree | 7604184f1d5293bc0119304112fb1a49ecf35927 /main/nano | |
parent | d7228315c0ffb46c091923793a8270606ad883e7 (diff) | |
download | aports-66999878a055457606916bef6821bd60805a0a0a.tar.bz2 aports-66999878a055457606916bef6821bd60805a0a0a.tar.xz |
main/nano: upgrade to 2.8.6 and modernize abuild
Diffstat (limited to 'main/nano')
-rw-r--r-- | main/nano/APKBUILD | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/main/nano/APKBUILD b/main/nano/APKBUILD index e00a789657..617f2c2b4e 100644 --- a/main/nano/APKBUILD +++ b/main/nano/APKBUILD @@ -1,9 +1,9 @@ # Contributor: Michael Mason <ms13sp@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=nano -pkgver=2.8.4 +pkgver=2.8.6 pkgrel=0 -pkgdesc="Text Editor. GNU nano is designed to be a free replacement for the Pico text editor." +pkgdesc="Text editor designed to be a free replacement for the Pico text editor" url="http://www.nano-editor.org/" arch="all" license="GPL" @@ -22,36 +22,35 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ - --with-wordbounds \ - || return 1 - make || return 1 + --with-wordbounds + make } check() { cd "$builddir" - make check || return 1 + make check } package() { cd "$builddir" + make DESTDIR="$pkgdir" install install -Dm644 doc/sample.nanorc \ - "$pkgdir"/etc/nanorc || return 1 + "$pkgdir"/etc/nanorc # Proper syntax highlighting for APKBUILDs sed -i "/syntax/s/\"$/\" \"APKBUILD&/" \ - "$pkgdir"/usr/share/nano/sh.nanorc || return 1 + "$pkgdir"/usr/share/nano/sh.nanorc - rm -rf "$pkgdir"/usr/lib/charset.alias || return 1 + rm -rf "$pkgdir"/usr/lib/charset.alias } syntax() { pkgdesc="Syntax highlighting definitions for $pkgname" - depends="" mkdir -p "$subpkgdir"/usr/share/$pkgname/ mv "$pkgdir"/usr/share/$pkgname/*.nanorc \ - "$subpkgdir"/usr/share/$pkgname/ || return 1 + "$subpkgdir"/usr/share/$pkgname/ } -sha512sums="bbcaf710fdb5f403812b584a182ee472421d65c076f5fa2d538603c4cda8292485010157a2670e9890fcffc29d7db5c7334334d54d14f4e154b9bc3fe1ee919c nano-2.8.4.tar.gz" +sha512sums="51a16cae4fd753a575690974759bd6277f81487c04b9e15018770f4333bcce2ef7f15c4d241973a3f993fc54978e5830fe59a59e2af1acd8639e81cb905219c5 nano-2.8.6.tar.gz" |