wok-current annotate ruby-ncurses/receipt @ rev 25052

ruby-ncurses: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 05 11:43:47 2022 +0000 (2022-06-05)
parents 3258d19b6f6c
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@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 }