wok view ldm/receipt @ rev 24890

trafshow: libpcap 1.10 has its own pcap_init
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 05 09:06:43 2022 +0000 (2022-04-05)
parents 5ea0ce1cecc0
children 7364ffdaaa60
line source
1 # SliTaz package receipt.
3 PACKAGE="ldm"
4 VERSION="0.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="l(ightweight) d(evice) m(ounter)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/LemonBoy/ldm"
10 REPOLOGY="ldm-mounter"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/tarball/v$VERSION"
15 DEPENDS="glib udev"
16 BUILD_DEPENDS="glib-dev udev-dev util-linux-blkid util-linux-mount-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/tarb*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ludev -lmount -lglib-2.0"
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cook_copy_folders bin
37 }