wok annotate hd2u/receipt @ rev 25705
fusecloop/extract_compressed_fs: can convert to v0.68 or v1.0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 22 12:48:49 2024 +0000 (4 months ago) |
parents | be7981c477c5 |
children |
rev | line source |
---|---|
slaxemulator@6768 | 1 # SliTaz package receipt. |
slaxemulator@6768 | 2 |
slaxemulator@6768 | 3 PACKAGE="hd2u" |
Hans-G?nter@21030 | 4 VERSION="1.0.4" |
slaxemulator@6768 | 5 CATEGORY="misc" |
slaxemulator@6768 | 6 SHORT_DESC="Dos2Unix text file converter." |
pascal@13025 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@21030 | 9 WEB_SITE="https://hany.sk/~hany/software/hd2u/" |
Hans-G?nter@21030 | 10 |
slaxemulator@6768 | 11 TARBALL="$PACKAGE-$VERSION.tgz" |
pascal@20669 | 12 WGET_URL="https://hany.sk/~hany/_data/hd2u/$TARBALL" |
slaxemulator@6768 | 13 |
pascal@15000 | 14 DEPENDS="popt" |
pascal@15000 | 15 BUILD_DEPENDS="popt-dev" |
pascal@15000 | 16 |
pascal@24445 | 17 # What is the latest version available today? |
pascal@24445 | 18 current_version() |
pascal@24445 | 19 { |
pascal@24445 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24445 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q |
pascal@24445 | 22 } |
pascal@24445 | 23 |
slaxemulator@6768 | 24 # Rules to configure and make the package. |
slaxemulator@6768 | 25 compile_rules() |
slaxemulator@6768 | 26 { |
Hans-G?nter@21030 | 27 ./configure \ |
Hans-G?nter@21030 | 28 --prefix=/usr \ |
Hans-G?nter@21030 | 29 --infodir=/usr/share/info \ |
Hans-G?nter@21030 | 30 --mandir=/usr/share/man \ |
slaxemulator@6768 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@21030 | 32 make -j 1 && |
Hans-G?nter@21030 | 33 make prefix=$DESTDIR/usr install |
slaxemulator@6768 | 34 } |
slaxemulator@6768 | 35 |
slaxemulator@6768 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6768 | 37 genpkg_rules() |
slaxemulator@6768 | 38 { |
slaxemulator@6768 | 39 mkdir -p $fs/usr |
pascal@15000 | 40 cp -a $install/usr/bin $fs/usr |
slaxemulator@6768 | 41 } |
slaxemulator@6768 | 42 |
slaxemulator@7739 | 43 post_remove() |
slaxemulator@7739 | 44 { |
pascal@18730 | 45 ln -s /bin/busybox "$1/usr/bin/dos2unix" |
al@18734 | 46 } |