wok-current view nitrogen/receipt @ rev 25450

BootProg: avoid divide errors
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 14 18:33:54 2022 +0000 (2022-09-14)
parents 2a67d7fa40f8
children
line source
1 # SliTaz package receipt.
3 PACKAGE="nitrogen"
4 VERSION="1.6.1"
5 CATEGORY="x-window"
6 TAGS="wallpaper"
7 SHORT_DESC="A background browser and setter for X windows."
8 MAINTAINER="mallory@sweetpeople.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/l3ib/nitrogen"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/releases/download/$VERSION/$TARBALL"
15 DEPENDS="gcc-lib-base gtkmm libpng"
16 BUILD_DEPENDS="cairomm-dev glib-dev gtk+-dev gtkmm gtkmm-dev libpng-dev
17 pkg-config xorg-libXinerama-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
31 sed -e '/png.h/d' < src/Thumbview.cc > src/Thumbview.cc.patched
32 # mv src/Thumbview.cc.patched src/Thumbview.cc
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/pixmaps
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/share/icons/hicolor/32x32/apps/nitrogen.png \
50 $fs/usr/share/pixmaps/
51 }