summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3cf274d4171080caf5dbfc59fb023c46df4d1b66 (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
# Maintainer: droserasprout <droserasprout@tuta.io>
pkgname=unflac
pkgrel=1
pkgver=r58.d677c2e
pkgdesc='A command line tool for fast frame accurate audio image + cue sheet splitting.'
arch=('x86_64')
url="https://git.sr.ht/~ft/$pkgname"
license=('unknown')
makedepends=('go' 'git')
depends=('ffmpeg')
source=('git+https://git.sr.ht/~ft/unflac')
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd $pkgname
  go get -u
  go build
}

package() {
  cd $pkgname
  install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
}