wok-current annotate parcellite/receipt @ rev 25557
Up bzip3 (1.3.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 23 16:03:47 2023 +0000 (20 months ago) |
parents | 080c1dff8494 |
children |
rev | line source |
---|---|
pankso@637 | 1 # SliTaz package receipt |
pankso@637 | 2 |
pankso@637 | 3 PACKAGE="parcellite" |
Hans-G?nter@21659 | 4 VERSION="1.2.1" |
pascal@741 | 5 CATEGORY="utilities" |
Hans-G?nter@21659 | 6 SHORT_DESC="Lightweight GTK+ clipboard manager." |
pankso@637 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@25460 | 9 WEB_SITE="https://parcellite.sourceforge.net/" |
Hans-G?nter@21659 | 10 |
pankso@637 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@6515 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@637 | 13 |
pankso@12404 | 14 DEPENDS="gtk+ xorg-libX11 xorg-libXdamage" |
pankso@16381 | 15 BUILD_DEPENDS="xorg-libX11-dev gtk+-dev" |
pankso@12404 | 16 |
Hans-G?nter@21659 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@21659 | 18 |
pascal@24396 | 19 # What is the latest version available today? |
pascal@24396 | 20 current_version() |
pascal@24396 | 21 { |
pascal@24396 | 22 wget -O - https://sourceforge.net/projects/parcellite/files/parcellite/ 2>/dev/null | \ |
pascal@24396 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 24 sed '/scope="row/!d;s|.*/parcellite-||;s|.tar.*||;q' |
pascal@24396 | 25 } |
pascal@24396 | 26 |
pankso@637 | 27 # Rules to configure and make the package. |
pankso@637 | 28 compile_rules() |
pankso@637 | 29 { |
pascal@12760 | 30 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 31 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11" |
Hans-G?nter@21659 | 32 # find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
pankso@637 | 33 ./configure \ |
pascal@1470 | 34 $CONFIGURE_ARGS && |
Hans-G?nter@21659 | 35 make && |
Hans-G?nter@21659 | 36 make install |
pankso@637 | 37 } |
pankso@637 | 38 |
pankso@637 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@637 | 40 genpkg_rules() |
pankso@637 | 41 { |
Hans-G?nter@21659 | 42 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21659 | 43 mkdir -p $fs/etc |
Hans-G?nter@21659 | 44 |
Hans-G?nter@21659 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21659 | 46 cp -a $stuff/skel $fs/etc |
Hans-G?nter@21659 | 47 |
pankso@12404 | 48 chown -R 0.0 $fs |
pankso@637 | 49 } |