summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b2b7de4ba32bf0f2ea3e81128ea5336043326fd (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
# Maintainer: Alexandre Pujol <alexandre@pujol.io>
# Contributor: Maxence Mohr <maxence@keeex.net>

pkgname='keeex'
pkgver=4.0.0
pkgrel=1
pkgdesc='Fully operational blockchain solutions for securing, chaining, sharing, signing and timestamping any kind of document, data or process with no alteration.'
arch=('x86_64')
url='https://keeex.me/'
license=('custom')
depends=('hidapi'
         'libxtst'
         'gtk2'
         'nss'
         'alsa-lib'
         'gconf'
         'libnotify')
source=("https://downloads.keeex.io/latest/keeex.linux64.zip"
        "https://keeex.me/pkgfiles/icon.png"
        "keeex.desktop"
        "https://keeex.me/pkgfiles/LICENSE")
sha512sums=('f7a2f908d75028c0b094e8ba869da9bdaf7c77eda7b0d1401d53fcf85bdbab80068eb770d4f84055f0acd4008f2c2e47ab7e15b60ca713320266d66bb877dc38'
            'a0dd5edb226531602db1e5796327f0674fcc944ab4868e1b96d9028f6c6756b08cb71654cac6249f87700427a4c9057c1f36389b53055ca3714628a2930f6da7'
            '9417f1ca69983735407e76eb308e4bd7de3129dca7d92ed4d23569e11afad5611387fdf2148006fcb870b052635c2e646e4e8a4d761119884ead32d4c7fc6930'
            'ed5e531303fefc75b839a5778fd4e83166d0263bc1aa68672919dee013eda391b61b34600c580ed7ab5f94e70523ce64e0679bac18dc25a25230c032b00d5b56')
_execname="KeeeX"
_target_dir="/opt"
options=("!strip")

prepare() {
  cd "${srcdir}"
  chmod +x "${_execname}"
}

package() {
  OPT_PATH="${pkgdir}${_target_dir}/${pkgname}"

  # create folder
  install -dm755 "${OPT_PATH}"
  install -dm755 "${pkgdir}/usr/bin"

  # Program
  cp -r * "${OPT_PATH}/"

  # Remove symlink (zip should have a folder on top level to prevent that crappy solution)
  rm ${OPT_PATH}/{icon.png,keeex.desktop,keeex.linux64.zip,LICENSE}

  # Link to program
  ln -s "${_target_dir}/${pkgname}/${_execname}" "${pkgdir}/usr/bin/${_execname,,}"

  # Desktop file
  install -Dm644 "keeex.desktop" "${pkgdir}/usr/share/applications/keeex.desktop"

  # Copy license
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}