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