wok annotate sqlite3-ruby/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 daea73103f19
children
rev   line source
erjo@8060 1 # SliTaz package receipt.
erjo@8060 2
erjo@8060 3 PACKAGE="sqlite3-ruby"
pascal@24296 4 VERSION="1.4.2"
erjo@8060 5 CATEGORY="development"
erjo@8060 6 SHORT_DESC="Ruby interface for the SQLite database engine"
erjo@8060 7 MAINTAINER="erjo@slitaz.org"
pascal@15379 8 LICENSE="BSD"
pascal@15379 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@20682 10 WEB_SITE="https://rubygems.org/gems/sqlite3"
pascal@24296 11 WGET_URL="https://github.com/sparklemotion/sqlite3-ruby/archive/refs/tags/v$VERSION.tar.gz"
pascal@15379 12
erjo@8060 13 DEPENDS="ruby sqlite"
erjo@8060 14 BUILD_DEPENDS="ruby ruby-dev sqlite-dev"
erjo@8060 15
pascal@25636 16 # What is the latest version available today?
pascal@24288 17 current_version()
pascal@24288 18 {
pascal@24288 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24288 20 sed '/\/versions\//!d;s|.*versions.||;s|".*||;q'
pascal@24288 21 }
pascal@24288 22
erjo@8060 23 # Rules to configure and make the package.
erjo@8060 24 compile_rules()
erjo@8060 25 {
erjo@8060 26 ruby setup.rb config
erjo@8060 27 ruby setup.rb setup
pascal@15379 28 ruby setup.rb install --prefix=$DESTDIR
erjo@8060 29 }
erjo@8060 30
erjo@8060 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8060 32 genpkg_rules()
erjo@8060 33 {
erjo@8060 34 mkdir -p $fs/usr
pascal@15379 35 cp -a $install/usr/lib $fs/usr
erjo@8060 36 }