wok-6.x view which/receipt @ rev 17290
gvfs: (re-)compile glib schemas on install and on remove.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 28 17:37:52 2014 +0200 (2014-10-28) |
parents | 2b9f96603415 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="which"
4 VERSION="2.20"
5 CATEGORY="base-system"
6 SHORT_DESC="A utility to show the full path of commands"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.xs4all.nl/~carlo17/which"
11 WGET_URL="http://www.xs4all.nl/~carlo17/$PACKAGE/$TARBALL"
13 DEPENDS="glibc-base"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $install/usr/bin $fs/usr
32 }
34 # Pre and post install commands for Tazpkg.
35 # We must remove all Busybox symlink before installing.
36 #
37 pre_install()
38 {
39 local root
40 root=$1
41 echo "Processing pre-install commands..."
42 echo -n "Removing all Busybox replaced utils... "
43 rm -f $root/usr/bin/which
44 status
45 }
47 post_remove()
48 {
49 ln -s /bin/busybox /usr/bin/which
50 }