summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYen Chi Hsuan2016-09-12 03:27:13 +0800
committerYen Chi Hsuan2016-09-12 03:27:13 +0800
commit16cce21584ce2585b6b3a8ff42681a98b0c5a406 (patch)
tree61e4e53beeb0619c59d8361ab30359478a5fde92
downloadaur-16cce21584ce2585b6b3a8ff42681a98b0c5a406.tar.gz
New package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5ad73aed20a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sun Sep 11 19:26:08 UTC 2016
+pkgbase = version-control-tools-hg
+ pkgdesc = Tools, extensions, hooks, etc to support version control at Mozilla
+ pkgver = r4759.6c8605c9e78f
+ pkgrel = 1
+ url = https://mozilla-version-control-tools.readthedocs.io/en/latest/
+ arch = any
+ license = custom:MPL2
+ depends = mercurial
+ provides = version-control-tools
+ source = version-control-tools::hg+https://hg.mozilla.org/hgcustom/version-control-tools
+ source = MPL2.html::https://www.mozilla.org/en-US/MPL/2.0/
+ sha512sums = SKIP
+ sha512sums = 8da1d55827c0dfafd7685a487db81533f32d20df32223e6d659ac557351d8b4fda791077d2090c7b0a2e3c7e8ac82d0b21e30dfdc14d014de906fba38d35cc89
+
+pkgname = version-control-tools-hg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4631971fbfc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# vim: set ft=sh:
+# Maintainer: Yen Chi Hsuan <yan12125 at gmail dot com>
+
+_pkgname=version-control-tools
+pkgname=$_pkgname-hg
+pkgver=r4759.6c8605c9e78f
+pkgrel=1
+pkgdesc="Tools, extensions, hooks, etc to support version control at Mozilla"
+url="https://mozilla-version-control-tools.readthedocs.io/en/latest/"
+arch=('any')
+depends=('mercurial')
+provides=("$_pkgname")
+license=('custom:MPL2')
+source=("$_pkgname"::"hg+https://hg.mozilla.org/hgcustom/version-control-tools"
+ MPL2.html::https://www.mozilla.org/en-US/MPL/2.0/)
+sha512sums=('SKIP'
+ '8da1d55827c0dfafd7685a487db81533f32d20df32223e6d659ac557351d8b4fda791077d2090c7b0a2e3c7e8ac82d0b21e30dfdc14d014de906fba38d35cc89')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+}
+
+package() {
+ cd "$srcdir/"
+
+ install -Ddm755 "$pkgdir/opt/"
+ cp -dr --no-preserve=ownership "$_pkgname" "$pkgdir/opt/"
+ rm -rf "$pkgdir/opt/$_pkgname/.hg"*
+
+ install -Ddm755 "$pkgdir/usr/share/licenses/version-control-tools-hg"
+ install -Dm644 MPL2.html "$pkgdir/usr/share/licenses/version-control-tools-hg/MPL2.html"
+}