wok-next annotate nano/receipt @ rev 20453
Undo openssl split
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 16:28:07 2018 +0200 (2018-02-28) |
parents | 6c12ac1293fc |
children | 757d032c55c7 |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
pankso@19 | 2 |
pankso@19 | 3 PACKAGE="nano" |
al@19693 | 4 VERSION="2.6.3" |
pankso@201 | 5 CATEGORY="utilities" |
al@19241 | 6 SHORT_DESC="Nano Text Editor" |
pankso@19 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19240 | 9 WEB_SITE="https://nano-editor.org/" |
pankso@9675 | 10 |
al@19693 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19693 | 12 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL" |
al@19693 | 13 |
pascal@19952 | 14 BUILD_DEPENDS_arm="ncurses-dev zlib-dev" |
al@20443 | 15 BUILD_DEPENDS="gettext ncurses-dev zlib-dev groff libmagic-dev" |
pankso@19 | 16 |
al@20443 | 17 compile_rules() { |
al@14334 | 18 ./configure \ |
al@14334 | 19 --sysconfdir=/etc \ |
al@14334 | 20 --localstatedir=/var \ |
al@19240 | 21 --disable-wrapping-as-root \ |
pankso@16334 | 22 --enable-utf8 \ |
pankso@16079 | 23 $CONFIGURE_ARGS $ARCH_ARGS && |
al@19693 | 24 make && make install || exit 1 |
al@19693 | 25 |
al@19693 | 26 # Config file. |
al@19693 | 27 mkdir -p $install/etc |
al@19693 | 28 cp $src/doc/nanorc.sample $install/etc/nanorc |
al@19693 | 29 |
al@19693 | 30 install -v -m644 doc/texinfo/nano.html $install/usr/share/doc/nano-$VERSION |
pankso@19 | 31 } |
pankso@19 | 32 |
al@20443 | 33 genpkg_rules() { |
al@19783 | 34 copy etc/ bin/ nano/ |
al@19259 | 35 |
al@19259 | 36 # Shrink |
al@19259 | 37 for i in $fs/usr/share/nano/*.nanorc; do |
al@19259 | 38 sed -i '/^#/d;/^$/d' $i |
al@19259 | 39 done |
al@20443 | 40 DEPENDS="libmagic ncurses zlib" |
al@20443 | 41 TAGS="text-editor" |
al@20443 | 42 SUGGESTED="gpm" |
pankso@19 | 43 } |