wok annotate ruby-ncurses/receipt @ rev 24225
updated perl-io-socket-ssl (2.068 -> 2.073)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:41:39 2021 +0100 (2021-12-31) |
parents | 8e65b867668e |
children | 3258d19b6f6c |
rev | line source |
---|---|
paul@16777 | 1 # SliTaz package receipt. |
paul@16777 | 2 |
paul@16777 | 3 PACKAGE="ruby-ncurses" |
paul@16777 | 4 VERSION="1.3.1" |
paul@16777 | 5 CATEGORY="development" |
paul@16777 | 6 SHORT_DESC="Ruby extension for the ncurses C library." |
paul@16777 | 7 MAINTAINER="paul@slitaz.org" |
pascal@17216 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@22182 | 9 |
paul@16777 | 10 DEPENDS="ruby ncurses" |
Hans-G?nter@22182 | 11 BUILD_DEPENDS="glibc-dev ncurses-dev ruby-dev" |
Hans-G?nter@22182 | 12 |
paul@16777 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
paul@16777 | 14 SOURCE="ncurses-ruby" |
paul@16777 | 15 WEB_SITE="http://pkgs.fedoraproject.org/repo/pkgs/ruby-ncurses/" |
pascal@17869 | 16 WGET_URL="${WEB_SITE}$TARBALL/63fd3d09a51cdd745e1ed37f85621ea2/$TARBALL" |
paul@16777 | 17 |
pascal@24083 | 18 current_version() |
pascal@24083 | 19 { |
pascal@24083 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24083 | 21 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24083 | 22 } |
pascal@24083 | 23 |
paul@16777 | 24 # Rules to configure and make the package. |
paul@16777 | 25 compile_rules() |
paul@16777 | 26 { |
paul@16777 | 27 # use fedora patches |
paul@16777 | 28 patch -i ../../stuff/STR2CSTR-deprecated.patch |
paul@16777 | 29 patch -i ../../stuff/ruby-ncurses-fix-missing-tz-prototypes.patch |
Hans-G?nter@22182 | 30 |
Hans-G?nter@22182 | 31 ruby extconf.rb && |
Hans-G?nter@22182 | 32 make && |
paul@16777 | 33 make DESTDIR=$DESTDIR install |
paul@16777 | 34 } |
paul@16777 | 35 |
paul@16777 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@16777 | 37 genpkg_rules() |
paul@16777 | 38 { |
paul@16777 | 39 mkdir -p $fs/usr |
paul@16777 | 40 cp -a $install/usr/lib $fs/usr |
paul@16777 | 41 } |