blob: 815ac6cf74dc5f10162e7d35b32d9efde13a6602 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=nano
pkgver=4.4
pkgrel=0
pkgdesc="Enhanced clone of the Pico text editor"
url="https://www.nano-editor.org"
arch="all"
license="GPL-3.0+"
makedepends="file-dev ncurses-dev"
subpackages="$pkgname-doc $pkgname-lang"
replaces="nano-syntax" # ??? why was this ever split
source="https://www.nano-editor.org/dist/v${pkgver%.*}/$pkgname-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-wordbounds
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 doc/sample.nanorc \
"$pkgdir"/etc/nanorc
# Proper syntax highlighting for APKBUILDs
sed -i "/syntax/s/\"$/\" \"APKBUILD&/" \
"$pkgdir"/usr/share/nano/sh.nanorc
rm -rf "$pkgdir"/usr/lib/charset.alias
}
sha512sums="1bf3aff2f68ed2c9903dccfbdb23a4a127fb74543797e56459141a7a30a34c024bfd6f845788bbd990bf3c72721465ed2d66bb47a1b1c8257b2b6f29834e11ef nano-4.4.tar.xz"
|