blob: f580f6f725f4bd8279b438a095fc05e8fa03598a (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=shutter-encoder-bin
_pkgname="Shutter Encoder"
pkgver=18.5
pkgrel=1
pkgdesc="Converter for all formats video|audio|image professionnals codecs and standards - swiss knife tool for Linux"
arch=("x86_64")
url="https://www.shutterencoder.com"
_ghurl="https://github.com/paulpacifico/shutter-encoder"
license=("GPL-3.0-only")
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'libxml2'
'freetype2'
'libjpeg-turbo'
'libxi'
'libxrender'
'libx11'
'libxext'
'perl'
'util-linux-libs'
'lcms2'
'libbsd'
'alsa-lib'
'vulkan-icd-loader'
'libxtst'
)
source=(
"${pkgname%-bin}-${pkgver}.deb::${url}/Shutter%20Encoder%20${pkgver}%20Linux%2064bits.deb"
"${pkgname%-bin}.sh"
)
sha256sums=('aba9c00809f842ae8d87ce02d8ec7b89bee366c4c7e37788af4a13ca425fde52'
'a81897397409f2d750ead9f53f7cded8bffbb765da2305dea006d2fb4fcd2b1d')
build() {
sed -e "
s/@appname@/${pkgname%-bin}/
s/@runname@/${pkgname%-bin}/
" -i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
find "${srcdir}" -type d -exec chmod 755 {} \;
find "${srcdir}" -type f -name "*.*" -perm 777 -exec chmod 644 {} \;
find "${srcdir}" -type f -perm 777 -exec chmod 755 {} \;
sed "s/\"\/usr\/lib\/${_pkgname}\/AppRun\"/\/usr\/lib\/${pkgname%-bin}\/AppRun/" -i "${srcdir}/usr/lib/${_pkgname}/${pkgname%-bin}"
sed "s/\/usr\/lib\/${_pkgname}\/usr\/bin\/icon.png/${pkgname%-bin}/;s/\/usr\/share\/icons\/hicolor\/256x256\/apps\/icon/${pkgname%-bin}/" \
-i "${srcdir}/usr/share/applications/${_pkgname// /_}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -r "${srcdir}/usr/lib/${_pkgname}/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/usr/share/applications/${_pkgname// /_}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/usr/lib/${_pkgname}/usr/bin/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
}
|