summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a514c3dda414bf4c41640890450a0e4a6c86dba (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
# Maintainer: Antoine Viallon <antoine@lesviallon.fr>

pkgname=spotrec-git
pkgver=v0.12.0.r2.g15c2e71
pkgrel=1
pkgdesc="Spotify desktop client recorder for PulseAudio (git version)"
arch=('any')
url="https://github.com/Bleuzen/SpotRec"
license=('mit')
depends=('python' 'python-dbus' 'ffmpeg' 'gawk' 'bash')
optdepends=('spotify'
            'audacity'
            'kid3')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')
provides=(spotrec)
conflicts=(spotrec)
makedepends=(nuitka)

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

build() {
  cd $pkgname
  ./build.sh
}

package() {
  mkdir -p "$pkgdir"/usr/bin/
  install -D $pkgname/spotrec "$pkgdir"/usr/bin/
}