aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 513c3d78cf6d4abd458b820b78d1c9ead7baf335 (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
# Maintainer: Ming Di Leom

_pkgname=freetube
pkgname=${_pkgname}-nightly
pkgver=0.21.2_nightly_4590
pkgrel=1
pkgdesc="A private YouTube client (nightly build)"
arch=('x86_64')
url="https://github.com/FreeTubeApp/FreeTube"
license=('AGPL-3.0-or-later')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=(
  'c-ares'
  'ffmpeg'
  'gtk3'
  'http-parser'
  'libevent'
  'libvpx'
  'libxslt'
  'libxss'
  'minizip'
  'nss'
  're2'
  'snappy'
  'libnotify'
  'libappindicator-gtk3'
  'ttf-liberation'
)
install=$pkgname.install
source=("https://github.com/curbengh/${pkgname}/releases/latest/download/${_pkgname}.pacman.tar.xz")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/"
  grep -oP '(?<=pkgver = )[\S]+(?=-\d+)' '.PKGINFO'
}

package() {
  install -d "$pkgdir/opt/FreeTube"
  cp -r  "${srcdir}/opt/" "${pkgdir}/"
  cp -r  "${srcdir}/usr/" "${pkgdir}/"
}