summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 925cd1754fc62518dad953ae0cb6f233c365aa73 (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
# Maintainer: PolpOnline <aur at t0mmy dot anonaddy dot com>
# Contributor:  Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=exifcleaner-bin
_pkgname=ExifCleaner
pkgver=3.6.0
pkgrel=2
pkgdesc="Desktop app to clean metadata from images, videos, PDFs, and other files."
arch=('x86_64')
url="https://exifcleaner.com"
license=('MIT')

depends=(
  'nss'
  'gtk3'
  'perl'
)
provides=('exifcleaner')

source=(
  "$pkgname-$pkgver.deb::https://github.com/szTheory/exifcleaner/releases/download/v$pkgver/exifcleaner_${pkgver}_amd64.deb"
  'LICENSE::https://github.com/szTheory/exifcleaner/raw/master/LICENSE'
)
sha512sums=(
  # For the `.deb` file
  '7416bbb800b9decb7dad931e75ea7636ecd0a98f6677c17b4b854363c547b46876df3155ea4ed37bfd91d09cb8ed4384caab75293d0d31f438def6093b43efcf'
  # For the `LICENSE` file
  '40505bfe313ac2630ff38bfb2e60ef71c73e23a6733d895e7af298074588d4a3831e11d38242af433cdffd0ac1ac66faeb5035894e4c87761f9fffc09fb501e2'
)

package() {
  tar xf "$srcdir/data.tar.xz" -C "$pkgdir/"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  install -d "$pkgdir/usr/bin/"
  ln -s "/opt/$_pkgname/exifcleaner" "${pkgdir}/usr/bin/exifcleaner"

  # SUID chrome-sandbox for electron 5+ as indicated here: https://github.com/electron/electron/issues/17972#issuecomment-487369441
  chmod 4755 "$pkgdir/opt/$_pkgname/chrome-sandbox"
}