wok-next view gtkhash/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gtkhash"
4 VERSION="1.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A GTK+ utility for computing message digests or checksums"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/tristanheaven/gtkhash"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
14 BUILD_DEPENDS="gettext intltool automake libtool gtk+3-dev libb2-dev mhash-dev \
15 caja-dev"
16 SPLIT="gtkhash-caja gtkhash gtkhash-dev"
18 compile_rules() {
19 # --enable-nautilus --enable-nemo --enable-thunar
20 # --enable-libcrypto : openssl-dev >= 1.1
21 # --enable-mbedtls :
22 # --enable-gcrypt : libgcrypt-dev
23 # --enable-nettle : nettle-dev
25 ./autogen.sh &&
26 ./configure \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --enable-blake2 \
30 --enable-linux-crypto \
31 --enable-mhash \
32 --enable-caja \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 *-caja)
41 copy libgtkhash-properties-caja.so
42 DEPENDS="gtkhash caja"
43 CAT="utilities|plugin for Caja"
44 ;;
45 gtkhash)
46 copy @std @rm *.mo
47 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+3 \
48 libb2 libffi libgomp libharfbuzz liblzma libpng16 libxml2 mhash \
49 pango pcre util-linux-blkid util-linux-mount util-linux-uuid \
50 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender \
51 xorg-libxcb xorg-pixman zlib"
52 ;;
53 *-dev)
54 copy @dev
55 DEPENDS="${SPLIT/$PACKAGE/} atk-dev bzip2-dev cairo-dev caja-dev \
56 fontconfig-dev freetype-dev gdk-pixbuf-dev glib-dev gtk+3-dev \
57 harfbuzz-dev libb2-dev libffi-dev libpng16-dev libxml2-dev \
58 mhash-dev pango-dev pcre-dev util-linux-blkid-dev \
59 util-linux-mount-dev util-linux-uuid-dev xorg-libX11-dev \
60 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
61 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
62 ;;
63 esac
64 }