summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJiuyang liu2020-08-24 01:48:45 +0000
committerJiuyang liu2020-08-24 01:49:26 +0000
commit36bd6a8f3322bfb59af2f216e0d9deea3bf3717d (patch)
treeb438114023a51cf099579d861d67139d8696be63 /PKGBUILD
downloadaur-36bd6a8f3322bfb59af2f216e0d9deea3bf3717d.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..c0dae5450f16
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Jiuyang Liu <liu@jiuyang.me>
+
+pkgname=gitmirror
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='Auto sync GitHub to GitLab'
+arch=('any')
+url='https://github.com/sequencer/gitmirror'
+license=('BSD')
+depends=('java-environment')
+makedepends=('mill')
+source=("https+git://github.com/sequencer/gitmirror")
+
+build(){
+ cd gitmirror
+ mill gitmirror.assembly
+}
+
+package() {
+ cd gitmirror
+ install -Dm755 out/gitmirror/assembly/dest/out.jar "$pkgdir"/usr/bin/gitmirror
+ install -Dm600 config.json $pkgdir/etc/$pkgname/config.json
+ install -Dm755 gitmirror.service $pkgdir/usr/lib/systemd/system/gitmirror.service
+ install -Dm755 gitmirror.timer $pkgdir/usr/lib/systemd/system/gitmirror.timer
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}