blob: b0d239bbc214e38a5388f34f4aaa2765e3e6f468 (
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
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
pkgname=4kstogram
pkgver=4.9.0.4680
pkgrel=1
pkgdesc="Download and backup Instagram photos shared by any user"
arch=('x86_64')
url="https://www.4kdownload.com/products/product-stogram"
license=('LicenseRef-eula')
depends=('openssl' 'glib2')
makedepends=('chrpath')
source=("${pkgname}_${pkgver}_amd64.tar.bz2"::"https://dl.4kdownload.com/app/${pkgname}_${pkgver%.*}_amd64.tar.bz2"
"${pkgname}.desktop"
"${pkgname}.svg"
"fix_symlink_path.patch")
sha256sums=('562e8045e053d8808ec11a4cc2b5411fb658f1fa1c04d6500e50c760a1884e46'
'9a47c71327afa2059bad06e33b3a77b271e62c7653582342f41c588989026962'
'37e014bc5e68148e7b1797135a567c86c1bdb3ae31e38dab1644a01638f29a99'
'8745f84d3fac77023c1182177e80c8c91561c2d21c90f071de5d6f4773ad65c3')
prepare() {
cd "${pkgname}"
# Remove insecure RPATH
chrpath --delete "${pkgname}-bin"
# Fix symlink path
patch -p1 -i "${srcdir}/fix_symlink_path.patch"
}
package() {
# Install desktop file
install -m 755 -d "${pkgdir}/usr/share/applications"
install -m 755 -t "${pkgdir}/usr/share/applications" "${pkgname}.desktop"
# Install icon file
install -m 755 -d "${pkgdir}/usr/share/pixmaps"
install -m 644 -t "${pkgdir}/usr/share/pixmaps" "${pkgname}.svg"
# Install files
install -m 755 -d "${pkgdir}/usr/lib"
cp -r "${pkgname}" "${pkgdir}/usr/lib"
chown root:root "${pkgdir}/usr/lib/${pkgname}"
# Install launcher file
install -m 755 -d "${pkgdir}/usr/bin"
ln -s "/usr/lib/${pkgname}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
# Install license file
install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${pkgname}/doc/eula"
}
|