wok view gawk/receipt @ rev 19040
busybox: vi.desktop: use freedesktop standard icon; mate-control-center: remove unwanted MIME database files
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 15 15:56:42 2016 +0300 (2016-04-15) |
parents | f4c22f009037 |
children | d1139a9dbf88 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="4.0.1"
5 CATEGORY="development"
6 SHORT_DESC="GNU awk to handle simple data-reformatting."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/gawk/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS="gcc"
16 # Rules to compile & install the temporary toolchain.
17 cook_tmp_toolchain()
18 {
19 cd $src
20 ./configure && make && make install
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure --libexecdir=/usr/lib \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/locale
36 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/awk $fs/usr/share
39 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
40 }
42 # Pre and post install commands for Tazpkg.
43 # We must remove all Busybox symlink before installing.
44 pre_install()
45 {
46 rm -f "$1/usr/bin/awk"
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox "$1/usr/bin/awk"
52 }