wok annotate ogmrip/receipt @ rev 24396
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 12:15:27 2022 +0000 (2022-02-08) |
parents | f63646e9af45 |
children | 7dd01dedad38 |
rev | line source |
---|---|
Hans-G?nter@21624 | 1 # SliTaz package receipt. |
slaxemulator@7577 | 2 |
slaxemulator@7577 | 3 PACKAGE="ogmrip" |
Hans-G?nter@21624 | 4 VERSION="1.0.1" |
slaxemulator@7577 | 5 CATEGORY="multimedia" |
slaxemulator@7577 | 6 SHORT_DESC="Libraries and GTK2 interface for DVD ripping using mencoder." |
slaxemulator@7577 | 7 MAINTAINER="fredericguilbault@live.ca" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@21624 | 9 WEB_SITE="http://ogmrip.sourceforge.net/" |
Hans-G?nter@21624 | 10 |
gokhlayeh@11483 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
gokhlayeh@11483 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7577 | 13 |
Hans-G?nter@21624 | 14 DEPENDS="acl enca GConf libdvdread libglade libnotify libxml2 mencoder mplayer" |
Hans-G?nter@21624 | 15 BUILD_DEPENDS="acl enca-dev GConf-dev glib-dev intltool libdvdread-dev libgio-dev \ |
Hans-G?nter@21624 | 16 libglade-dev libnotify-dev libxml2-dev mencoder mplayer pkg-config \ |
Hans-G?nter@21624 | 17 tiff-dev zlib-dev" |
gokhlayeh@11483 | 18 |
pascal@24396 | 19 # What is the latest version available today? |
pascal@24396 | 20 current_version() |
pascal@24396 | 21 { |
pascal@24396 | 22 wget -O - https://sourceforge.net/projects/ogmrip/files/ogmrip/ 2>/dev/null | \ |
pascal@24396 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 25 sed '/scope="row/!d;s|.*/ogmrip-||;s|.tar.*||;q' |
pascal@24396 | 26 } |
pascal@24396 | 27 |
gokhlayeh@11483 | 28 compile_rules() |
gokhlayeh@11483 | 29 { |
Hans-G?nter@21624 | 30 ./configure \ |
Hans-G?nter@21624 | 31 --prefix=/usr \ |
Hans-G?nter@21624 | 32 --sysconfdir=/etc \ |
Hans-G?nter@21624 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21624 | 34 make && |
Hans-G?nter@21624 | 35 make -j1 DESTDIR=$DESTDIR install |
slaxemulator@7577 | 36 } |
slaxemulator@7577 | 37 |
slaxemulator@7577 | 38 genpkg_rules() |
slaxemulator@7577 | 39 { |
Hans-G?nter@21624 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@21624 | 41 mkdir -p $fs/usr/share |
gokhlayeh@11483 | 42 |
Hans-G?nter@21624 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21624 | 44 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@21624 | 45 cp -a $install/usr/share/ogmrip $fs/usr/share |
Hans-G?nter@21624 | 46 cp -a $install/usr/share/pixmaps $fs/usr/share |
Hans-G?nter@21624 | 47 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21624 | 48 cp -a $install/usr/lib/ogmrip $fs/usr/lib |
Hans-G?nter@21624 | 49 cp -a $install/etc $fs |
Hans-G?nter@21624 | 50 |
slaxemulator@7577 | 51 find $fs/usr/lib/ogmrip -name "*.*a" -type f -delete |
gokhlayeh@11483 | 52 } |