wok-next annotate nano/receipt @ rev 20947
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 31 11:58:18 2018 +0300 (2018-08-31) |
parents | e7a485521d6a |
children | d5aab818505e |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
pankso@19 | 2 |
pankso@19 | 3 PACKAGE="nano" |
al@20905 | 4 VERSION="2.9.8" |
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@20947 | 17 SPLIT="nano-noarch" |
al@20947 | 18 COOKOPTS="!menus" |
al@20947 | 19 |
al@20443 | 20 compile_rules() { |
al@14334 | 21 ./configure \ |
al@19240 | 22 --disable-wrapping-as-root \ |
pankso@16334 | 23 --enable-utf8 \ |
al@20534 | 24 $CONFIGURE_ARGS && |
al@20905 | 25 make && |
al@20905 | 26 make install || exit 1 |
al@19693 | 27 |
al@20905 | 28 # Config file |
al@20905 | 29 install -Dm644 $src/doc/sample.nanorc $install/etc/nanorc |
pankso@19 | 30 } |
pankso@19 | 31 |
al@20443 | 32 genpkg_rules() { |
al@20947 | 33 case $PACKAGE in |
al@20947 | 34 nano) |
al@20947 | 35 copy bin/ |
al@20947 | 36 DEPENDS="libmagic ncurses zlib" |
al@20947 | 37 TAGS="text-editor" |
al@20947 | 38 SUGGESTED="gpm" |
al@20947 | 39 ;; |
al@20947 | 40 nano-noarch) |
al@20947 | 41 copy @std @rm |
al@20947 | 42 CAT="utilities|common files" |
al@19259 | 43 |
al@20947 | 44 # Shrink |
al@20947 | 45 for i in $fs/usr/share/nano/*.nanorc; do |
al@20947 | 46 sed -i '/^#/d;/^$/d' $i |
al@20947 | 47 done |
al@20947 | 48 ;; |
al@20947 | 49 esac |
pankso@19 | 50 } |