summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c04bc723fc89cb44713f4f2cf24ff3dbc6113956 (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: willemw <willemw12@gmail.com>

pkgname=sparky-tube-git
pkgver=r38.64f7cf9
pkgrel=1
pkgdesc='Download a video file from a web site and convert it to audio or video output file'
arch=(any)
url=https://github.com/sparkylinux/sparky-tube
license=(GPL3)
depends=(ffmpeg xdg-user-dirs yad yt-dlp)
makedepends=(git)
optdepends=('vlc: play files'
            'mpv: play files'
            'smplayer: play files'
            'totem: play files'
            'qmplay2: play files'
            'rage: play files'
            'xine-ui: play files'
            'celluloid: play files')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  sed -i 's|\(/usr\)|'"$pkgdir"'\1|g' $pkgname/7/install.sh
}

package() {
  install -d "$pkgdir/usr/"{bin,share/{applications,pixmaps}}

  cd $pkgname/7
  ./install.sh
}