summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCookie Engineer2020-01-21 15:04:08 +0100
committerCookie Engineer2020-01-21 15:04:08 +0100
commitf644ea9fd3266a212473b8b8c0f96bf4057c49ff (patch)
tree258ef1c6e15873731f28a6843b38dbe0762406ed
downloadaur-f644ea9fd3266a212473b8b8c0f96bf4057c49ff.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD25
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f16ffac5c6f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = simple-chroot-git
+ pkgdesc = Simple chroot environment manager
+ pkgver = r89.edda14f
+ pkgrel = 1
+ url = https://github.com/mh5/simple-chroot
+ arch = any
+ license = BSD
+ depends = bash
+ options = !emptydirs
+ source = git+https://github.com/mh5/simple-chroot.git
+ sha256sums = SKIP
+
+pkgname = simple-chroot-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..697f4ea5a0f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/simple-chroot
+/simple-chroot-*-any.pkg.tar.xz
+/pkg
+/src
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e7c6007bfb2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer Cookie Engineer <@cookiengineer>
+
+pkgname=simple-chroot-git
+pkgver=r89.edda14f
+pkgrel=1
+pkgdesc="Simple chroot environment manager"
+arch=(any)
+url=https://github.com/mh5/simple-chroot
+license=( "BSD" )
+depends=('bash')
+options=('!emptydirs')
+source=("git+https://github.com/mh5/simple-chroot.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/simple-chroot"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/simple-chroot"
+ mkdir -p "{$pkgdir}/usr/bin";
+ install -Dm755 "${srcdir}/simple-chroot/simple-chroot.sh" "${pkgdir}/usr/bin/simple-chroot";
+}
+