summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a97f575d5bf7981242fa099a5724e4616b27b062 (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
57
# Maintainer: Eklektisk <eklektisk at eklektiskiscoding dot xyz>
# Project Maintainer: Jeison Yehuda Amihud <blenderdumbass at gmail dot com>
# Project Maintainer: tristan <tristan at tristans dot cloud>
# Project Maintainer: vertbyqb <vertbyqb at tuta dot io>

_pkgname=fastlbry-terminal
pkgname=${_pkgname}-git
pkgver=0.5.r207.g11e4d0d
pkgrel=1
pkgdesc="A fully featured, terminal application to interact with LBRY"
arch=('any')
url="https://www.notabug.org/jyamihud/FastLBRY-terminal"
license=('GPL3')
makedepends=('git')
depends=('python')
optdepends=('lbry-app-bin: for login support to Odysee servers'
            'lbry-desktop-git: for login support Odysee servers')
source=("git+$url.git"
        "${_pkgname}.desktop")
sha256sums=('SKIP' 'a4b9625cf5d47ebb1a5987926f26ad9ea7391c7c1dc26ebc6a9c933e860862a1')

pkgver() {
  cd ${srcdir}/FastLBRY-terminal
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  install -dm 0755 "${pkgdir}/usr/share/applications"
  install -m 0644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/"

  cd ${srcdir}/FastLBRY-terminal

  install -dm 0755 "${pkgdir}/usr/lib/${_pkgname}"
  cp -r flbry "${pkgdir}/usr/lib/${_pkgname}/"
  cp -r help "${pkgdir}/usr/lib/${_pkgname}/"
  cp -r themes "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 analytics.json "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 devs.json "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 How-To-Use.md "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 icon.png "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 LBRYNET-LICENSE.md "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 LICENSE.md "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 README.md "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 run.py "${pkgdir}/usr/lib/${_pkgname}/"
  install -m 0644 compressed-archive-download.png "${pkgdir}/usr/lib/${_pkgname}/"

  install -dm 0755 "${pkgdir}/usr/share/licenses/${_pkgname}"
  install -m 0644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/"
  install -m 0644 LBRYNET-LICENSE.md "${pkgdir}/usr/share/licenses/${_pkgname}/"

  install -dm 0755 "${pkgdir}/usr/bin/"
  cd "${pkgdir}/usr/bin/"
  echo "#!/bin/sh" > ${_pkgname}
  echo "cd /usr/lib/${_pkgname} && exec python3 run.py" >> ${_pkgname}
  chmod 755 ${_pkgname}
}