summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a7190fc0b6dd63a19b96d54dacbf193f45359c7 (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
# Maintainer: aditya-K2 <adityakurdunkar2@gmail.com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=gspt-git
pkgver=r317.f85809c
pkgrel=1
pkgdesc='Spotify for Terminal written in Go.'
arch=('x86_64')
url="https://github.com/aditya-K2/gspt"
license=('GPL3')
makedepends=('git' 'go' 'make')
source=("$pkgname::git+$url")
sha256sums=('SKIP')

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

prepare() {
   cd "$pkgname"
   git config --global --add safe.directory "$(pwd)"
}

build() {
    cd "$pkgname"
}

package() {
    cd "$pkgname"
    sudo make install
}