wok annotate gawk/receipt @ rev 18760
get-foxit-reader: depends on 'libcups', not 'cups'
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Dec 29 20:38:21 2015 +0200 (2015-12-29) |
parents | f4c22f009037 |
children | d1139a9dbf88 |
rev | line source |
---|---|
pankso@70 | 1 # SliTaz package receipt. |
pankso@70 | 2 |
pankso@70 | 3 PACKAGE="gawk" |
samuel_trassare@13489 | 4 VERSION="4.0.1" |
pankso@204 | 5 CATEGORY="development" |
pankso@70 | 6 SHORT_DESC="GNU awk to handle simple data-reformatting." |
pankso@70 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL3" |
pankso@70 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@70 | 10 WEB_SITE="http://www.gnu.org/software/gawk/" |
pankso@70 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@70 | 12 |
slaxemulator@10348 | 13 DEPENDS="" |
slaxemulator@10348 | 14 BUILD_DEPENDS="gcc" |
slaxemulator@10348 | 15 |
gokhlayeh@8179 | 16 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8179 | 17 cook_tmp_toolchain() |
gokhlayeh@8179 | 18 { |
gokhlayeh@8179 | 19 cd $src |
gokhlayeh@8179 | 20 ./configure && make && make install |
gokhlayeh@8179 | 21 } |
gokhlayeh@8179 | 22 |
pankso@70 | 23 # Rules to configure and make the package. |
pankso@70 | 24 compile_rules() |
pankso@70 | 25 { |
pankso@70 | 26 cd $src |
slaxemulator@10285 | 27 ./configure --libexecdir=/usr/lib \ |
slaxemulator@10285 | 28 $CONFIGURE_ARGS && |
slaxemulator@10285 | 29 make && make install |
pankso@70 | 30 } |
pankso@70 | 31 |
pankso@70 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@70 | 33 genpkg_rules() |
pankso@70 | 34 { |
pankso@70 | 35 mkdir -p $fs/usr/share/locale |
pascal@14999 | 36 cp -a $install/usr/bin $fs/usr |
pankso@70 | 37 |
pascal@14999 | 38 cp -a $install/usr/share/awk $fs/usr/share |
pascal@14999 | 39 cp -a $install/usr/share/locale/fr $fs/usr/share/locale |
pankso@70 | 40 } |
pankso@70 | 41 |
rcx@3535 | 42 # Pre and post install commands for Tazpkg. |
rcx@3535 | 43 # We must remove all Busybox symlink before installing. |
pankso@73 | 44 pre_install() |
pankso@70 | 45 { |
pascal@18730 | 46 rm -f "$1/usr/bin/awk" |
pankso@70 | 47 } |
pankso@70 | 48 |
rcx@3535 | 49 post_remove() |
rcx@3535 | 50 { |
pascal@18730 | 51 ln -s /bin/busybox "$1/usr/bin/awk" |
rcx@3535 | 52 } |