summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Anderson2021-02-12 12:21:32 -0500
committerSean Anderson2021-02-12 12:27:34 -0500
commitbce166d5b865b43ab5878b9645248d8557e698bb (patch)
tree9acd1a131e92c48b1adf9b6a42ac04ba30c1dad7
downloadaur-bce166d5b865b43ab5878b9645248d8557e698bb.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD64
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6693b07061e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = mmdebstrap
+ pkgdesc = create a Debian chroot
+ pkgver = 0.7.5
+ pkgrel = 1
+ url = https://gitlab.mister-muffin.de/josch/mmdebstrap
+ arch = any
+ license = MIT
+ depends = apt
+ depends = python
+ depends = perl
+ optdepends = debian-archive-keyring: Debian PKI support
+ optdepends = ubuntu-keyring: Ubuntu PKI support
+ optdepends = qemu-user-static: foreign-architecture support
+ optdepends = binfmt-qemu-static-all-arch: foreign-architecture support
+ optdepends = arch-test: foreign-architecture support
+ source = https://gitlab.mister-muffin.de/josch/mmdebstrap/repository/archive.tar.gz?ref=0.7.5
+ md5sums = c51884fea40822c6f8cd5e7c7c7378a5
+
+pkgname = mmdebstrap
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..35ffc5c5752
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# This is an example PKGBUILD file. Use this as a start to creating your own,
+# and remove these comments. For more information, see 'man PKGBUILD'.
+# NOTE: Please fill out the license field for your package! If it is unknown,
+# then please put 'unknown'.
+
+# Maintainer: Sean Anderson <seanga2@gmail.com>
+_commit=976cc9c1c4cd943cb25ba683902906cb83471fa6
+pkgname=mmdebstrap
+pkgver=0.7.5
+pkgrel=1
+epoch=
+pkgdesc="create a Debian chroot"
+arch=('any')
+url="https://gitlab.mister-muffin.de/josch/mmdebstrap"
+license=('MIT')
+groups=()
+depends=('apt' 'python' 'perl')
+makedepends=()
+checkdepends=()
+optdepends=(
+ 'debian-archive-keyring: Debian PKI support'
+ 'ubuntu-keyring: Ubuntu PKI support'
+ 'qemu-user-static: foreign-architecture support'
+ 'binfmt-qemu-static-all-arch: foreign-architecture support'
+ 'arch-test: foreign-architecture support')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("$url/repository/archive.tar.gz?ref=$pkgver")
+noextract=()
+md5sums=('c51884fea40822c6f8cd5e7c7c7378a5')
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-$pkgver-$_commit"
+}
+
+build() {
+ cd "$pkgname-$pkgver-$_commit"
+}
+
+package() {
+ cd "$pkgname-$pkgver-$_commit"
+
+ source <(perl -V:vendorarch)
+ mkdir -p $pkgdir$vendorarch
+ h2ph -d $pkgdir$vendorarch -a syscall.h
+
+ mkdir -p $pkgdir/usr/bin
+ cp -a mmdebstrap $pkgdir/usr/bin/mmdebstrap
+ cp -a taridshift $pkgdir/usr/bin/mmtaridshift
+ cp -a tarfilter $pkgdir/usr/bin/mmtarfilter
+ mkdir -p $pkgdir/usr/lib/apt/solvers
+ cp -a proxysolver $pkgdir/usr/lib/apt/solvers/mmdebstrap-dump-solution
+ mkdir -p $pkgdir/usr/share/mmdebstrap
+ cp -a hooks $pkgdir/usr/share/mmdebstrap
+
+ mkdir -p $pkgdir/usr/share/man/man1
+ pod2man mmdebstrap > $pkgdir/usr/share/man/man1/mmdebstrap.1
+}