wok-next annotate fxload/receipt @ rev 15790
Add openvpn-down-root
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 16 10:28:08 2014 +0000 (2014-01-16) |
parents | b2a632fc9587 |
children | 6d04a1dcf69f |
rev | line source |
---|---|
pascal@1180 | 1 # SliTaz package receipt. |
pascal@1180 | 2 |
pascal@1180 | 3 PACKAGE="fxload" |
pascal@1180 | 4 VERSION="0.0.20020411" |
pascal@1180 | 5 CATEGORY="system-tools" |
pascal@1180 | 6 SHORT_DESC="Utility to load xorcom astribank channel bank." |
pascal@1180 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@1180 | 9 TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz" |
pascal@14337 | 10 EXTRA_SOURCE_FILES="$PACKAGE" |
pascal@1180 | 11 WEB_SITE="http://www.xorcom.com/" |
pascal@1180 | 12 WGET_URL="http://updates.xorcom.com/astribank/$PACKAGE/$TARBALL" |
pascal@1180 | 13 |
pascal@1180 | 14 # Rules to configure and make the package. |
pascal@1180 | 15 compile_rules() |
pascal@1180 | 16 { |
pascal@1523 | 17 ln -s fxload-*_* $src |
pascal@1523 | 18 cd $src |
pascal@14337 | 19 mkdir -p $DESTDIR/usr/share/usb |
pascal@14337 | 20 cp a3load.hex $DESTDIR/usr/share/usb || return 1 |
pascal@5552 | 21 [ -f $SOURCES_REPOSITORY/$PACKAGE ] && cp $SOURCES_REPOSITORY/$PACKAGE . |
pascal@5552 | 22 if [ ! -f $PACKAGE ]; then |
pascal@5552 | 23 wget http://updates.xorcom.com/astribank/$PACKAGE/$PACKAGE || |
pascal@5552 | 24 return 1 |
pascal@5552 | 25 cp $PACKAGE $SOURCES_REPOSITORY |
pascal@5552 | 26 fi |
pascal@1180 | 27 chmod +x fxload |
pascal@14337 | 28 mkdir -p $DESTDIR/usr/bin |
pascal@14337 | 29 mv fxload $DESTDIR/usr/bin |
pascal@1180 | 30 } |
pascal@1180 | 31 |
pascal@1180 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1180 | 33 genpkg_rules() |
pascal@1180 | 34 { |
pascal@14337 | 35 cp -a $install/usr $fs |
pascal@1180 | 36 } |
pascal@1180 | 37 |