wok annotate xcircuit/receipt @ rev 25188
xorg-imake: update create-lib-cmd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 12 14:15:49 2022 +0000 (2022-07-12) |
parents | 162ce5a95e8f |
children |
rev | line source |
---|---|
slaxemulator@6621 | 1 # SliTaz package receipt. |
slaxemulator@6621 | 2 |
slaxemulator@6621 | 3 PACKAGE="xcircuit" |
Hans-G?nter@23744 | 4 VERSION="3.10.24" |
slaxemulator@6621 | 5 CATEGORY="graphics" |
Hans-G?nter@22018 | 6 SHORT_DESC="A program for drawing publishable-quality electrical circuit schematic diagrams." |
slaxemulator@6621 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@22018 | 9 WEB_SITE="http://opencircuitdesign.com/xcircuit/" |
Hans-G?nter@22018 | 10 |
slaxemulator@6621 | 11 TARBALL="$PACKAGE-$VERSION.tgz" |
Hans-G?nter@22018 | 12 WGET_URL="${WEB_SITE}archive/$TARBALL" |
slaxemulator@6621 | 13 |
Hans-G?nter@22018 | 14 DEPENDS="cairo tcl tk xorg-libXpm zlib" |
Hans-G?nter@22018 | 15 BUILD_DEPENDS="automake cairo-dev tcl-dev tk-dev xorg-libXpm-dev xorg-libXt-dev zlib-dev" |
pascal@15579 | 16 |
pascal@24436 | 17 # What is the latest version available today? |
pascal@24436 | 18 current_version() |
pascal@24436 | 19 { |
pascal@24436 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24436 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.t.*||" | sort -Vr | sed q |
pascal@24436 | 22 } |
pascal@24436 | 23 |
slaxemulator@6621 | 24 # Rules to configure and make the package. |
slaxemulator@6621 | 25 compile_rules() |
slaxemulator@6621 | 26 { |
Hans-G?nter@22018 | 27 ./configure \ |
Hans-G?nter@22018 | 28 --prefix=/usr \ |
Hans-G?nter@22018 | 29 --with-tcl=/usr/lib \ |
Hans-G?nter@22018 | 30 --with-tk=/usr/lib \ |
gokhlayeh@11573 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@22018 | 32 make && |
Hans-G?nter@22018 | 33 make DESTDIR=$DESTDIR install |
slaxemulator@6621 | 34 } |
slaxemulator@6621 | 35 |
slaxemulator@6621 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6621 | 37 genpkg_rules() |
slaxemulator@6621 | 38 { |
samuel_trassare@12057 | 39 mkdir -p $fs/usr/lib |
Hans-G?nter@22018 | 40 |
Hans-G?nter@22018 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22018 | 42 cp -a $install/usr/lib/$PACKAGE-${VERSION%.*} $fs/usr/lib |
slaxemulator@6621 | 43 } |