summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bcf9b75105bf9746c605d161dca25745da5190c (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
# Maintainer:  Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>

_name="aescrypt"
_pkgname="${_name}-gui"
pkgname="${_pkgname}-bin"
pkgver=4.1.0
_commit="a125906e360537a612e4c698f7ed76faf6a18173"
pkgrel=1
pkgdesc="A file encryption software that uses the Advanced Encryption (AES) standard - GUI"
arch=('any')
url="https://www.aescrypt.com"
_url="https://github.com/terrapane/aescrypt_linux"
license=('custom:Commercial')
depends=('aescrypt' 'hicolor-icon-theme' 'perl')
optdepends=('zenity: GTK-based password prompt'
            'kdialog: Qt-based password prompt')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
_pkgsrc="${_pkgname}-${pkgver}"
source=("CHANGELOG-${pkgver}.md::${_url}/raw/${_commit}/CHANGELOG.md"
        "${_pkgsrc}.tar.gz::${url}/download/v${pkgver%%.*}/linux/${_pkgname//-/_}-${pkgver}-Linux-x86_64.tar.gz")
sha256sums=('3274c7d63edb41e5f3bad987591339775c0821acee19a70a3500149a326d625a'
            '74cb4d5644e68d8d59c2a96864ba0cad4bc46701b3f726af987c85de3a682e2d')
# validpgpkeys=('C264DC0F1C13A4BB18CAAF1BE7BE982BCD50DDF4') # Terrapane Support <support@terrapane.com> (https://github.com/terrapane/aescrypt_linux/blob/master/README.md#signed-release-packages)

prepare() {
  cd "${srcdir}/${_pkgname//-/_}-${pkgver}-Linux-x86_64"
  rm -rf "bin/${_name}" "share/man"
  
  cd "share/applications"
  sed -i 's|^Icon=.*|Icon=aescrypt|' "${_name}.desktop"
}

package() {
  cd "${srcdir}"
  install -vDm644 "CHANGELOG-${pkgver}.md" "${pkgdir}/usr/share/doc/${_pkgname}/CHANGELOG.md"

  cd "${_pkgname//-/_}-${pkgver}-Linux-x86_64"
  find "bin"   -type f -exec install -vDm755 "{}" "${pkgdir}/usr/{}" \;
  find "share" -type f -exec install -vDm644 "{}" "${pkgdir}/usr/{}" \;
}