wok-current view ruby-ncurses/receipt @ rev 25288

libQt5Plugins: removed dependency libQt3Support
author Hans-G?nter Theisgen
date Tue Jul 19 07:28:24 2022 +0100 (2022-07-19)
parents 3258d19b6f6c
children
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}$SOURCE-$VERSION.tar.bz2/63fd3d09a51cdd745e1ed37f85621ea2/$SOURCE-$VERSION.tar.bz2"
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 }