summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Sjöström2023-01-17 23:03:28 +0100
committerLars Sjöström2023-01-17 23:03:28 +0100
commit0e0a7ab90c35697f913e3426bceb95d4d283ab28 (patch)
tree7b9bcfcaedc22208e7b32e8d2f8892f5887af16a
downloadaur-0e0a7ab90c35697f913e3426bceb95d4d283ab28.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD25
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..07d61dcd3d6d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = sapling-scm-bin
+ pkgdesc = Sapling SCM is a cross-platform, highly scalable, Git-compatible source control system.
+ pkgver = 0.2.20221222.152408.ha6a66d09
+ pkgrel = 1
+ epoch = 1
+ url = https://sapling-scm.com/
+ arch = x86_64
+ license = GPL2
+ depends = curl
+ depends = nodejs
+ depends = python
+ depends = github-cli
+ optdepends = watchman: for faster file watching
+ options = !strip
+ source = https://github.com/facebook/sapling/releases/download/0.2.20221222-152408-ha6a66d09/sapling_0.2.20221222-152408-ha6a66d09_amd64.Ubuntu22.04.deb
+ sha256sums = 50b802c5cca98505fd900171ced6cb8f5d24c8dc307d5206f1b61cdc30cc114c
+
+pkgname = sapling-scm-bin
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..dd4b300980db
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Lars Sjöström <(firstname) @ radicore.se>
+
+pkgname=sapling-scm-bin
+_realver=0.2.20221222-152408-ha6a66d09
+pkgver="${_realver//-/.}" # dashes aren't allowed in pkgver
+pkgrel=1
+epoch=1
+pkgdesc='Sapling SCM is a cross-platform, highly scalable, Git-compatible source control system.'
+arch=('x86_64')
+license=('GPL2')
+url='https://sapling-scm.com/'
+depends=('curl' 'nodejs' 'python' 'github-cli')
+optdepends=('watchman: for faster file watching')
+
+options=('!strip')
+
+source=("https://github.com/facebook/sapling/releases/download/$_realver/sapling_${_realver}_amd64.Ubuntu22.04.deb")
+sha256sums=('50b802c5cca98505fd900171ced6cb8f5d24c8dc307d5206f1b61cdc30cc114c')
+
+package() {
+ cd "${srcdir}"
+ tar --use-compress-program=unzstd -xvf data.tar.zst --no-same-owner -C "${pkgdir}"
+ # Fix permissions
+ chmod -R go-w "${pkgdir}"
+}