Added yadm-1.12.0-r0

Added py-envtpl-master-r0
This commit is contained in:
ayakael 2019-06-27 16:06:47 -04:00
parent 12fd4718a4
commit 00e7c60a50
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541
2 changed files with 85 additions and 0 deletions

59
apk/py-envtpl/APKBUILD Normal file
View file

@ -0,0 +1,59 @@
# Maintainer: Antoine Martin <antoine.martin@protonmail.com>
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
}

26
apk/yadm/APKBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Antoine Martin <antoine@ayakael.net>
# Based on PKGBUILD by the following:
# Maintainer: Stefan Tatschner <stefan@rumpelsepp.org>
# Contributor: Franek Madej <franek.madej@gmail.com>
# 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"
}