wok view gdbm/receipt @ rev 10841

locale-zh_CN: Fixed post_install and post_remove to be only work when not being installed with --root option.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jun 10 02:24:41 2011 +0800 (2011-06-10)
parents 3b10cfcc3474
children 8b19c9c8daae
line source
1 # SliTaz package receipt.
3 PACKAGE="gdbm"
4 VERSION="1.8.3"
5 CATEGORY="misc"
6 SHORT_DESC="GNU database indexing library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/gdbm"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="glibc-base"
13 BUILD_DEPENDS="gcc"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i -e 's/BINOWN = bin/BINOWN = root/' \
20 -e 's/BINGRP = bin/BINGRP = root/' Makefile.in
21 ./configure &&
22 make &&
23 make INSTALL_ROOT=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib
30 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
31 }