wok-current annotate libtaz/receipt @ rev 8006
Up: file to 5.05.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 18 15:37:33 2011 +0000 (2011-01-18) |
parents | 32cd9732fa86 |
children | d0c6a2d1c542 |
rev | line source |
---|---|
gokhlayeh@7998 | 1 # SliTaz package receipt. |
gokhlayeh@7998 | 2 |
gokhlayeh@7998 | 3 PACKAGE="libtaz" |
gokhlayeh@7998 | 4 VERSION="0.0.1" |
gokhlayeh@7998 | 5 CATEGORY="base-system" |
gokhlayeh@7998 | 6 SHORT_DESC="Slitaz generic library." |
gokhlayeh@7998 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
slaxemulator@8001 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
gokhlayeh@7998 | 9 WEB_SITE="http://www.slitaz.org/" |
gokhlayeh@7998 | 10 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL" |
gokhlayeh@7998 | 11 # using an hg URL because tarball is not avaible at this moment |
slaxemulator@8001 | 12 WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" |
gokhlayeh@7998 | 13 TAGS="slitaz" |
gokhlayeh@7998 | 14 CONFIG_FILES="/etc/slitaz/slitaz.conf" |
gokhlayeh@7998 | 15 |
slaxemulator@8001 | 16 compile_rules() |
slaxemulator@8001 | 17 { |
slaxemulator@8001 | 18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then |
slaxemulator@8002 | 19 tar xzf $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@8001 | 20 else |
slaxemulator@8001 | 21 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced |
slaxemulator@8001 | 22 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" |
slaxemulator@8002 | 23 tar xzf $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@8001 | 24 fi |
slaxemulator@8001 | 25 } |
slaxemulator@8001 | 26 |
gokhlayeh@7998 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@7998 | 28 genpkg_rules() |
gokhlayeh@7998 | 29 { |
gokhlayeh@7998 | 30 mkdir -p $fs/usr/share/slitaz/web \ |
gokhlayeh@7998 | 31 $fs/usr/lib/slitaz $fs/etc/slitaz |
gokhlayeh@7998 | 32 cp -a $src/libtaz $fs/usr/lib/slitaz |
gokhlayeh@7998 | 33 cp -a $src/libtaz-modules $fs/usr/lib/slitaz |
gokhlayeh@7998 | 34 cp -a $src/slitaz.conf $fs/etc/slitaz |
gokhlayeh@7998 | 35 cp -a $src/web $fs/usr/share/slitaz |
gokhlayeh@7998 | 36 } |