blob: 92213aa0d42c10814bb3687a126542db61dc3865 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
_pkgname='natron'
pkgname="${_pkgname}-bin"
pkgver=2.5.0
pkgrel=1
pkgdesc='Node-graph video compositor'
arch=('x86_64')
url='https://natrongithub.github.io'
_url_source='https://github.com/NatronGitHub/Natron'
license=('GPL2')
depends=('glu' 'hicolor-icon-theme' 'libxcrypt-compat')
makedepends=('gendesk' 'imagemagick')
options=('!strip')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
noextract=("${_pkgname}-${pkgver}.tar.xz")
source=("${_pkgname}-${pkgver}.tar.xz::${_url_source}/releases/download/v${pkgver}/${_pkgname^}-${pkgver}-Linux-x86_64-no-installer.tar.xz")
sha512sums=('36901047652f3c96ed6c9266b3744a5fedfb24423cf52e3cc9860b2b26e210c50bada86f25598d8d889514b4ef25f33cfb8c947353b658eb6dda48a631f91379')
prepare() {
gendesk -f -n \
--pkgname="${_pkgname}" \
--pkgdesc="${pkgdesc}" \
--name="${_pkgname^}" \
--comment="${pkgdesc}" \
--exec="${_pkgname^}" \
--icon="${_pkgname}" \
--categories='Graphics' \
--mimetypes='application/x-natron'
cat << EOF > "x-${_pkgname}.xml"
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-${_pkgname}">
<comment>${_pkgname^} Project File</comment>
<icon name="${_pkgname}"/>
<glob-deleteall/>
<glob pattern="*.ntp"/>
</mime-type>
</mime-info>
EOF
}
package() {
install -Dvm644 "${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dvm644 "x-${_pkgname}.xml" -t "${pkgdir}/usr/share/mime/application"
install -dv "${pkgdir}/"{"opt/${_pkgname}",'usr/bin'}
tar -xvf "${_pkgname}-${pkgver}.tar.xz" --strip-components=1 -C "${pkgdir}/opt/${_pkgname}"
ln -sfv "/opt/${_pkgname}/${_pkgname^}" -t "${pkgdir}/usr/bin"
for i in 16 22 24 32 48 64 96 128 256; do
convert "${pkgdir}/opt/${_pkgname}/Resources/pixmaps/${_pkgname}Icon256_linux.png" \
-resize "${i}x${i}" "${srcdir}/icon_app${i}.png"
install -Dvm644 "${srcdir}/icon_app${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${_pkgname}.png"
done
for i in 16 22 24 32 48 64 96 128 256; do
convert "${pkgdir}/opt/${_pkgname}/Resources/pixmaps/${_pkgname}ProjectIcon_linux.png" \
-resize "${i}x${i}" "${srcdir}/icon_mime${i}.png"
install -Dvm644 "${srcdir}/icon_mime${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/${_pkgname}.png"
done
}
# vim: ts=2 sw=2 et:
|