blob: f9d1b1800f0a385db0d2f10ffece262ce98f85e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname='densify'
pkgver=0.3.1
pkgrel=3
pkgdesc='GTK+ application to easily compress pdf files using Ghostscript'
arch=('any')
url='https://github.com/hkdb/Densify'
license=('MIT')
depends=('ghostscript' 'hicolor-icon-theme' 'python-gobject' 'xorg-xrandr')
makedepends=('gendesk' 'imagemagick')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('593108c30551efc82db7e3931714e3b2571e86ab93b4aef4a711ac610ce67ae0')
prepare() {
echo -e "#!/bin/sh\ncd /usr/share/${pkgname} && exec python ${pkgname}" > "${pkgname}"
gendesk -f -n \
--pkgname="${pkgname}" \
--pkgdesc="${pkgdesc}" \
--name="${pkgname^}" \
--comment="${pkgdesc}" \
--exec="${pkgname}" \
--icon="${pkgname}" \
--categories='Utility'
}
package() {
install -Dvm755 "${pkgname}" -t "${pkgdir}/usr/bin"
install -Dvm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
for i in 16 22 24 32 48 64 96 128 256; do
convert "${pkgname^d}-${pkgver}/desktop-icon.png" -resize "${i}x${i}" "icon${i}.png"
install -Dvm644 "icon${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
done
cd "${pkgname^d}-${pkgver}"
install -Dvm755 "${pkgname}" -t "${pkgdir}/usr/share/${pkgname}"
install -Dvm644 {'header','icon'}.png -t "${pkgdir}/usr/share/${pkgname}"
install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|