summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 500f8077410ed8eff81e1bce8a11377ed3c16f65 (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
# Maintainer:  Nicholas Wang <me#nicho1as.wang>

pkgname=tunasync-git
pkgver=master
pkgrel=3
pkgdesc="Mirror job management tool developed by TUNA"
arch=('x86_64')
license=('GPL3')
depends=('glibc')
makedepends=('git' 'go')
replaces=('tunasync-bin')
conflicts=('tunasync-bin')
provides=('tunasync' 'tunasynctl')
source=('tunasync::git+https://github.com/tuna/tunasync#branch=master')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}"/tunasync
  git log -1 --format="%cd" --date=short | sed 's|-||g'
}

build() {
  cd "${srcdir}"/tunasync
  make
}

package() {
  install -Dm755 "${srcdir}"/tunasync/build-linux-amd64/tunasync "${pkgdir}"/usr/bin/tunasync
  install -Dm755 "${srcdir}"/tunasync/build-linux-amd64/tunasynctl "${pkgdir}"/usr/bin/tunasynctl
}