wok annotate lxterminal/receipt @ rev 24757
pkg-config: cheat configure
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 18 06:53:58 2022 +0100 (2022-03-18) |
parents | 211713be9cab |
children | 3399d88bfd0e |
rev | line source |
---|---|
gokhlayeh@5956 | 1 # SliTaz package receipt. |
gokhlayeh@5956 | 2 |
gokhlayeh@5956 | 3 PACKAGE="lxterminal" |
Hans-G?nter@21396 | 4 VERSION="0.3.2" |
gokhlayeh@5956 | 5 CATEGORY="utilities" |
Hans-G?nter@21396 | 6 TAGS="LXDE terminal" |
Hans-G?nter@21396 | 7 SHORT_DESC="LXDE terminal emulator." |
gokhlayeh@7034 | 8 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15379 | 9 LICENSE="GPL2" |
Hans-G?nter@21396 | 10 WEB_SITE="https://wiki.lxde.org/en/LXTerminal" |
Hans-G?nter@21396 | 11 |
Hans-G?nter@21396 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21396 | 13 WGET_URL="$SF_MIRROR/lxde/$TARBALL" |
Hans-G?nter@21396 | 14 |
gokhlayeh@5956 | 15 SUGGESTED="lxterminal-locales" |
Hans-G?nter@21396 | 16 DEPENDS="gtk+ vte" |
Hans-G?nter@21396 | 17 BUILD_DEPENDS="gtk+-dev intltool vte-dev vte-terminal" |
pascal@15379 | 18 |
pascal@24071 | 19 current_version() |
pascal@24071 | 20 { |
pascal@24071 | 21 wget -O - https://sourceforge.net/projects/lxde/files/LXTerminal%20%28terminal%20emulator%29/ 2>/dev/null | \ |
pascal@24071 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24071 | 23 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 24 } |
pascal@24071 | 25 |
gokhlayeh@5956 | 26 # Rules to configure and make the package. |
gokhlayeh@5956 | 27 compile_rules() |
gokhlayeh@5956 | 28 { |
Hans-G?nter@21396 | 29 ./configure \ |
Hans-G?nter@21396 | 30 --prefix=/usr \ |
Hans-G?nter@21396 | 31 --infodir=/usr/share/info \ |
Hans-G?nter@21396 | 32 --mandir=/usr/share/man \ |
gokhlayeh@5956 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21396 | 34 make -j 1 && |
Hans-G?nter@21396 | 35 make DESTDIR=$DESTDIR install |
gokhlayeh@5956 | 36 } |
gokhlayeh@5956 | 37 |
gokhlayeh@5956 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@5956 | 39 genpkg_rules() |
gokhlayeh@5956 | 40 { |
gokhlayeh@5956 | 41 mkdir -p $fs/usr |
Hans-G?nter@21396 | 42 |
Hans-G?nter@21396 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21396 | 44 cp -a $install/usr/share $fs/usr |
gokhlayeh@5956 | 45 |
gokhlayeh@5956 | 46 # Remove man & locales |
gokhlayeh@5956 | 47 rm -rf $fs/usr/share/man |
al@17988 | 48 rm -rf $fs/usr/share/locale |
gokhlayeh@5956 | 49 } |