wok-6.x annotate libraw1394/receipt @ rev 25507

plop: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 11 10:36:59 2023 +0000 (21 months ago)
parents 6a0e8480a13b
children e6abe3abd527
rev   line source
pankso@295 1 # SliTaz package receipt.
pankso@295 2
pankso@295 3 PACKAGE="libraw1394"
Hans-G?nter@21282 4 VERSION="2.1.2"
pankso@295 5 CATEGORY="system-tools"
pankso@295 6 SHORT_DESC="IEEE 1394 is a standard defining a high speed serial bus."
pankso@295 7 MAINTAINER="pankso@slitaz.org"
pascal@15482 8 LICENSE="LGPL2.1"
Hans-G?nter@21282 9 WEB_SITE="https://ieee1394.wiki.kernel.org/index.php/Main_Page"
Hans-G?nter@21282 10
pankso@295 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 12 WGET_URL="https://www.kernel.org/pub/linux/libs/ieee1394/$TARBALL"
pankso@295 13
pascal@24336 14 # What is the latest version available today?
pascal@24336 15 current_version()
pascal@24336 16 {
pascal@24336 17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 18 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 19 }
pascal@24336 20
pankso@295 21 # Rules to configure and make the package.
pankso@295 22 compile_rules()
pankso@295 23 {
Hans-G?nter@21282 24 ./configure \
Hans-G?nter@21282 25 --prefix=/usr \
Hans-G?nter@21282 26 --mandir=/usr/share/man \
pascal@5853 27 $CONFIGURE_ARGS &&
Hans-G?nter@21282 28 make -j 1 &&
pascal@15482 29 make DESTDIR=$DESTDIR install
pankso@295 30 }
pankso@295 31
pankso@295 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@295 33 genpkg_rules()
pankso@295 34 {
Hans-G?nter@21282 35 mkdir -p $fs/usr/lib
Hans-G?nter@21282 36 mkdir -p $fs/dev
Hans-G?nter@21282 37
Hans-G?nter@21282 38 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21282 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21282 40 # Device node
pankso@311 41 mknod -m 0666 $fs/dev/raw1394 c 171 0
pankso@295 42 chown root.root $fs/dev/raw1394
pankso@295 43 }