blob: 0269a355dce5537954f2b8336e87915d03d64135 (
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=20200917
pkgrel=1
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
}
|