wok annotate ruby-gtk2/receipt @ rev 25843
Update some urls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 21 09:04:33 2025 +0000 (2 months ago) |
parents | 29df00e1e19d |
children |
rev | line source |
---|---|
pankso@12250 | 1 # SliTaz package receipt. |
pankso@12250 | 2 |
pankso@12250 | 3 # Note: uses the full Ruby/GNOME2 package but compiles only the selected |
pankso@12250 | 4 # GTK+ & Glade parts. Select parts to compile on the following line. |
pankso@12250 | 5 # Any unwanted extras (i.e. GNOME stuff) will be ignored. |
pankso@12250 | 6 |
pascal@15350 | 7 #SELECTED_LIBS="glib2 pango atk gdk_pixbuf2 libglade gtk2" |
pascal@15350 | 8 SELECTED_LIBS="glib2 pango atk gdk_pixbuf2 gtk2" |
pankso@12250 | 9 |
pankso@12250 | 10 PACKAGE="ruby-gtk2" |
pankso@12250 | 11 VERSION="1.0.3" |
pankso@12250 | 12 CATEGORY="development" |
pankso@12250 | 13 SHORT_DESC="GTK+ bindings for Ruby." |
pankso@12250 | 14 MAINTAINER="ben@seawolfsanctuary.com" |
pascal@15313 | 15 LICENSE="LGPL2.1" |
pankso@12250 | 16 SOURCE="ruby-gnome2-all" |
pankso@12250 | 17 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@25843 | 18 WEB_SITE="https://ruby-gnome.github.io/" |
pankso@12250 | 19 WGET_URL="$SF_MIRROR/ruby-gnome2/$TARBALL" |
pankso@12250 | 20 |
pankso@12250 | 21 DEPENDS="ruby gtk+ xorg-libXp xorg-libXxf86vm" |
pankso@12250 | 22 BUILD_DEPENDS="ruby ruby-dev gtk+-dev xorg-libXp-dev xorg-libXxf86vm-dev ruby-pkgconfig" |
pankso@12250 | 23 |
pankso@12250 | 24 TAGS="ruby programming gtk development" |
pankso@12250 | 25 |
pascal@25607 | 26 # What is the latest version available today? |
pascal@24082 | 27 current_version() |
pascal@24082 | 28 { |
pascal@24082 | 29 local PKG=ruby-gnome2 |
pascal@24082 | 30 wget -O - https://sourceforge.net/projects/$PKG/files/$PKG 2>/dev/null | \ |
pascal@25607 | 31 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 32 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24082 | 33 } |
pascal@24082 | 34 |
pankso@12250 | 35 # Rules to configure and make the package. |
pankso@12250 | 36 compile_rules() |
pankso@12250 | 37 { |
pankso@12250 | 38 cd $src |
pascal@15313 | 39 sed -i 's|<glib/.*|<glib.h>|' glib2/ext/glib2/rbglib_*.c |
pankso@12250 | 40 |
pankso@12250 | 41 # Select the parts to compile here: |
pankso@12250 | 42 for LIB in $SELECTED_LIBS; do |
pankso@12250 | 43 ruby extconf.rb $LIB && \ |
pankso@12250 | 44 make $MAKEFLAGS && \ |
pankso@12250 | 45 make DESTDIR=$DESTDIR install |
pankso@12250 | 46 done |
pankso@12250 | 47 |
pankso@12250 | 48 } |
pankso@12250 | 49 |
pankso@12250 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12250 | 51 genpkg_rules() |
pankso@12250 | 52 { |
pankso@12250 | 53 mkdir -p $fs/usr |
pascal@15313 | 54 cp -a $install/usr $fs/ |
pankso@12250 | 55 } |