wok view libpfm/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents 65d7d867e0c1
children d3556b8f5c3d
line source
1 # SliTaz package receipt.
3 PACKAGE="libpfm"
4 VERSION="4.10.1"
5 CATEGORY="development"
6 SHORT_DESC="Improve performance monitoring on Linux."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://perfmon2.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/perfmon2/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/perfmon2/files/ 2>/dev/null | \
21 sed '/scope="row/!d;/libpfm/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/libpfm-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|PREFIX=/usr/local|PREFIX=/usr|' config.mk
29 make OPTIM="-m32 -O3" &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }