From 00e7c60a5009d273e3e479834e4a4434d22cdef7 Mon Sep 17 00:00:00 2001 From: ayakael Date: Thu, 27 Jun 2019 16:06:47 -0400 Subject: [PATCH] Added yadm-1.12.0-r0 Added py-envtpl-master-r0 --- apk/py-envtpl/APKBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++ apk/yadm/APKBUILD | 26 +++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 apk/py-envtpl/APKBUILD create mode 100644 apk/yadm/APKBUILD diff --git a/apk/py-envtpl/APKBUILD b/apk/py-envtpl/APKBUILD new file mode 100644 index 0000000..336adab --- /dev/null +++ b/apk/py-envtpl/APKBUILD @@ -0,0 +1,59 @@ +# Maintainer: Antoine Martin +pkgname=py-envtlp +pkgver=master +pkgrel=0 +pkgdesc="Render jinja2 templates on the command line using shell environment variables" +url='https://github.com/andreasjansson/envtpl' +arch="noarch" +license="GPL" +depends="python py-argparse py-jinja" +makedepends="git py-setuptools py-sh py-six" +source="$pkgname-$pkgver.tar.gz" +_giturl="https://github.com/andreasjansson/envtpl.git" +_gittag="$pkgver" +builddir="$srcdir/$pkgname" +options="!check" + +snapshot() { + mkdir -p "$srcdir" + cd "${srcdir}" + if ! [ -d $pkgname.git ]; then + git clone $_giturl $pkgname.git || return 1 + cd $pkgname.git + else + cd $pkgname.git + git fetch || return 1 + fi + + echo "Checking out" + git checkout $_gittag + echo "Repo archive" + git archive --prefix="$pkgname/" -o dam.tar --format "tar" $_gittag + + echo "Submod update" + git submodule update --init + cd bunc + echo "Submod archive" + git archive --prefix="$pkgname/bunc/" --format="tar" -o "../bunc.tar" "master" + cd .. + + + tar --concatenate --file dam.tar bunc.tar + gzip dam.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz + ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz +} + +build() { + cd "$builddir" + python setup.py build +} + +check() { + cd "$builddir" + python setup.pytest +} + +package() { + cd "$builddir" + python setup.py install --root="${pkgdir}" --optimize 1 --skip-build +} diff --git a/apk/yadm/APKBUILD b/apk/yadm/APKBUILD new file mode 100644 index 0000000..197776e --- /dev/null +++ b/apk/yadm/APKBUILD @@ -0,0 +1,26 @@ +# Maintainer: Antoine Martin + +# Based on PKGBUILD by the following: +# Maintainer: Stefan Tatschner +# Contributor: Franek Madej +# Completion changes and optdepends by Artemis + +pkgname=yadm +pkgver=1.12.0 +pkgrel=0 +pkgdesc="Yet Another Dotfiles Manager" +arch='noarch' +url="https://github.com/TheLocehiliosan/yadm" +license='GPL3' +depends='gnupg py-envtpl' +provides='yadm' +source="$pkgname-$pkgver.tar.gz::https://github.com/TheLocehiliosan/${pkgname}/archive/${pkgver}.tar.gz" +sha256sums='c3d612d01e2027d5f457e0f7d120bc67251b716c373d99fe70638bd86edf107f yadm-1.12.0.tar.gz' + +package() { + cd $srcdir/$pkgname-$pkgver + install -D -m 755 yadm $pkgdir/usr/bin/yadm + install -D -m 644 yadm.1 $pkgdir/usr/share/man/man1/yadm.1 + install -D -m 644 completion/yadm.bash_completion "${pkgdir}/usr/share/bash-completion/completions/yadm" + install -D -m 644 completion/yadm.zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_yadm" +}