wok view libdisasm/receipt @ rev 24545

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 19:32:16 2022 +0000 (2022-02-24)
parents 6bebe30dad3a
children b0069c845544
line source
1 # SliTaz package receipt.
3 PACKAGE="libdisasm"
4 VERSION="0.23"
5 CATEGORY="development"
6 SHORT_DESC="x86 Disassembler Library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Artistic"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://bastard.sourceforge.net/libdisasm.html"
11 WGET_URL="$SF_MIRROR/bastard/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/bastard/files/libdisasm/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/libdisasm/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32" \
28 --prefix=/usr \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }