summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd5b7cc1a867c2b813c35b04f2ae3fe65ef56065 (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
# Maintainer: Michael Picht <michael dot picht at ussenterprise dot de>

pkgorg=github.com/mipimipi
pkgname=smsync-git
_pkgname=smsync
pkgver=3.3.1
pkgrel=1
pkgdesc="smsync (Smart Music Sync) keeps huge music collections in sync and is takes care of conversions between different file formats. It's an easy-to-use command line application for Linux"
arch=('x86_64' 'i686')
url="https://$pkgorg/$_pkgname/"
license=('GPL3')
depends=('ffmpeg')
makedepends=('go-pie' 'dep')
source=("git://$pkgorg/$_pkgname.git")
sha256sums=('SKIP')

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

prepare() {
  mkdir -p gopath/src/$pkgorg
  ln -rTsf $_pkgname gopath/src/$pkgorg/$_pkgname
  export GOPATH="$srcdir"/gopath
  cd gopath/src/$pkgorg/$_pkgname
  dep ensure
}

build() {
  export GOPATH="$srcdir"/gopath
  cd gopath/src/$pkgorg/$_pkgname
  make VERSION=$pkgver
}

package() {
  export GOPATH="$srcdir"/gopath
  cd gopath/src/$pkgorg/$_pkgname
  make DESTDIR="$pkgdir" install
}