wok-current annotate scim-pinyin/receipt @ rev 24907
updated minised (1.15 -> 1.16)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:44:11 2022 +0100 (2022-04-09) |
parents | 667a6ebad331 |
children |
rev | line source |
---|---|
pascal@1803 | 1 # SliTaz package receipt. |
pascal@1803 | 2 |
pascal@1803 | 3 PACKAGE="scim-pinyin" |
Hans-G?nter@21213 | 4 VERSION="0.5.92" |
pascal@1803 | 5 CATEGORY="utilities" |
rocky@3532 | 6 SHORT_DESC="Chinese PinYin input for SCIM." |
rocky@3532 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15132 | 8 LICENSE="LGPL2.1" |
pascal@22398 | 9 WEB_SITE="https://www.scim-im.org/" |
Hans-G?nter@21213 | 10 |
pascal@1803 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rocky@3532 | 12 WGET_URL="$SF_MIRROR/scim/$TARBALL" |
rocky@3532 | 13 #WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL" |
pascal@1803 | 14 |
pascal@15132 | 15 DEPENDS="scim" |
Hans-G?nter@21216 | 16 BUILD_DEPENDS="automake gtk+-dev libtool scim-dev" |
pascal@15132 | 17 |
pascal@24348 | 18 # What is the latest version available today? |
pascal@24348 | 19 current_version() |
pascal@24348 | 20 { |
pascal@24348 | 21 wget -O - https://sourceforge.net/projects/scim/files/scim-pinyin/ 2>/dev/null | \ |
pascal@24348 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 23 sed '/scope="row/!d;s|.*/scim-pinyin-||;s|.tar.*||;q' |
pascal@24348 | 24 } |
pascal@1803 | 25 # Rules to configure and make the package. |
pascal@1803 | 26 compile_rules() |
pascal@1803 | 27 { |
Hans-G?nter@21213 | 28 # while read file; do |
Hans-G?nter@21213 | 29 # [ -f done.$file ] && continue |
Hans-G?nter@21213 | 30 # echo "Apply $file..." |
Hans-G?nter@21213 | 31 # patch -p1 < $stuff/$file || return 1 |
Hans-G?nter@21213 | 32 # touch done.$file |
Hans-G?nter@21213 | 33 # done <<EOT |
Hans-G?nter@21213 | 34 #cstring-gcc43.patch |
Hans-G?nter@21213 | 35 #EOT |
Hans-G?nter@21213 | 36 |
Hans-G?nter@21214 | 37 ./bootstrap && |
Hans-G?nter@21213 | 38 ./configure \ |
Hans-G?nter@21213 | 39 --prefix=/usr \ |
Hans-G?nter@21213 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@21213 | 41 --infodir=/usr/share/info \ |
Hans-G?nter@21213 | 42 --disable-static \ |
Hans-G?nter@21213 | 43 $CONFIGURE_ARGS && |
Hans-G?nter@21213 | 44 make -j 1 && |
Hans-G?nter@21213 | 45 make DESTDIR=$DESTDIR install |
pascal@1803 | 46 } |
pascal@1803 | 47 |
pascal@1803 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1803 | 49 genpkg_rules() |
pascal@1803 | 50 { |
Hans-G?nter@21213 | 51 mkdir -p $fs/usr/share |
Hans-G?nter@21213 | 52 |
Hans-G?nter@21213 | 53 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21213 | 54 cp -a $install/usr/share/scim $fs/usr/share |
Hans-G?nter@21213 | 55 |
Hans-G?nter@21213 | 56 find $fs/usr/lib -name '*.la' -exec rm {} \; |
pascal@1803 | 57 } |