wok view apcupsd/receipt @ rev 25669
Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 25 16:11:20 2024 +0000 (9 months ago) |
parents | 84c5b3483e46 |
children | 24024e28a27b |
line source
1 # SliTaz package receipt.
3 PACKAGE="apcupsd"
4 VERSION="3.14.14"
5 CATEGORY="system-tools"
6 SHORT_DESC="APC UPS Power Management (daemon)."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.apcupsd.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libgd libgd-dev slitaz-dev-pkgs"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/apcupsd%20-%20Stable/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/src platforms doc/src platforms/' Makefile
28 SHUTDOWN=/sbin/poweroff ac_cv_func_setpgrp_void=yes \
29 ./configure \
30 --enable-usb \
31 --disable-snmp \
32 --disable-net \
33 --with-upstype=usb \
34 --with-dev= \
35 --enable-threads \
36 --enable-cgi \
37 --prefix=/usr \
38 --infodir=/usr/share/info \
39 --mandir=/usr/share/man \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install
44 cook_pick_manpages $src/doc/*.5 $src/doc/*.8
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 rm -r $fs/usr/share/man
52 }