summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a4ee1538fac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Ian Young <ian at iangreenleaf dot com>
+
+pkgname=duplicacy
+pkgver=2.0.7
+pkgrel=1
+pkgdesc="A new generation cloud backup tool based on lock-free deduplication"
+arch=('x86_64' 'i686')
+url="https://duplicacy.com/"
+license=('custom')
+depends=('glibc')
+makedepends=('go' 'git')
+source=("https://github.com/gilbertchen/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('fcac7664bf8288747c4e35d35fd38fb2861e440697dfacc19df8c7fc39782d58')
+
+prepare() {
+ cd "$pkgname-$pkgver/$pkgname"
+
+ mkdir -p "src/github.com/gilbertchen"
+ ln -sf "$srcdir/$pkgname-$pkgver" "src/github.com/gilbertchen/$pkgname"
+
+ GOPATH="$srcdir/$pkgname-$pkgver/$pkgname" go get -d -v
+}
+
+build() {
+ cd "$pkgname-$pkgver/$pkgname"
+
+ GOPATH="$srcdir/$pkgname-$pkgver/$pkgname" go build -x
+}
+
+check() {
+ cd "$pkgname-$pkgver/$pkgname"
+
+ GOPATH="$srcdir/$pkgname-$pkgver/$pkgname" go test -v -x
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ install -Dm755 "$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}