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

pkgname=smsync-git
_pkgname=smsync
pkgver=1.3.1
pkgrel=1
pkgdesc='smsync (Smart Music Sync) is an easy-to-use command line application for Linux. It helps to keep huge music collections in sync and is also taking care of conversions between different formats'
arch=('x86_64' 'i686')
url="http://github.com/mipimipi/$_pkgname/"
license=('GPL3')
depends=('ffmpeg' 'lame')
makedepends=('go' 'git')
source=("git://github.com/mipimipi/$_pkgname.git")
sha256sums=('SKIP')

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

prepare() {
  cd "$_pkgname"
  export GOPATH=$(pwd)
  mkdir src
  ln -s -r vendor/github.com src/github.com
  ln -s -r vendor/golang.org src/golang.org
}

build() {
  cd "$_pkgname"
  export GOPATH=$(pwd)
  make VERSION=$pkgver
}

package() {
  cd "$_pkgname"
  make DESTDIR=$pkgdir install
}