wok annotate ruby-ncurses/receipt @ rev 25636

ruby-dev: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 24 16:48:59 2023 +0000 (5 months ago)
parents bb9b70ee30ac
children
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@25052 16 WGET_URL="${WEB_SITE}$SOURCE-$VERSION.tar.bz2/63fd3d09a51cdd745e1ed37f85621ea2/$SOURCE-$VERSION.tar.bz2"
paul@16777 17
pascal@25636 18 # What is the latest version available today?
pascal@24083 19 current_version()
pascal@24083 20 {
pascal@24083 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24083 22 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24083 23 }
pascal@24083 24
paul@16777 25 # Rules to configure and make the package.
paul@16777 26 compile_rules()
paul@16777 27 {
paul@16777 28 # use fedora patches
paul@16777 29 patch -i ../../stuff/STR2CSTR-deprecated.patch
paul@16777 30 patch -i ../../stuff/ruby-ncurses-fix-missing-tz-prototypes.patch
Hans-G?nter@22182 31
Hans-G?nter@22182 32 ruby extconf.rb &&
Hans-G?nter@22182 33 make &&
paul@16777 34 make DESTDIR=$DESTDIR install
paul@16777 35 }
paul@16777 36
paul@16777 37 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@16777 38 genpkg_rules()
paul@16777 39 {
paul@16777 40 mkdir -p $fs/usr
paul@16777 41 cp -a $install/usr/lib $fs/usr
paul@16777 42 }