wok view scrot/receipt @ rev 24695
advancecomp: CVE-2019-8383 & CVE-2019-9210
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 15:13:28 2022 +0000 (2022-03-13) |
parents | a8e75e9bae6c |
children | 1805f71c5d9f |
line source
1 # SliTaz package receipt.
3 PACKAGE="scrot"
4 VERSION="0.8-12"
5 CATEGORY="x-window"
6 SHORT_DESC="A screen capture utility"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-${VERSION%-*}.tar.gz"
10 WEB_SITE="http://freecode.com/projects/scrot"
11 WGET_URL="http://www.linuxbrit.co.uk/downloads/$TARBALL"
13 DEPENDS="bzlib freetype giblib glibc-base imlib2 libxcb xorg-libX11 \
14 xorg-libXau xorg-libXdmcp xorg-libXext zlib"
15 BUILD_DEPENDS="patch giblib-dev imlib2-dev xorg-libX11-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 # https://github.com/resurrecting-open-source-projects/scrot/releases
21 wget -O - https://github.com/dreamer/scrot/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|prefix)/doc|prefix)/share/doc|' *
29 patch -p1 < $stuff/scrot.patch
30 ./configure $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
39 cp -a $install/usr/bin $fs/usr
40 }