From 4f08bdba9ff4831bbc1b8ea378115f45df3515f0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 21 Feb 2023 23:56:00 -0500 Subject: [PATCH] user/yadm: new aport --- user/yadm/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 user/yadm/APKBUILD diff --git a/user/yadm/APKBUILD b/user/yadm/APKBUILD new file mode 100644 index 0000000..c6bfb5b --- /dev/null +++ b/user/yadm/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +pkgname=yadm +pkgver=3.2.1 +pkgrel=0 +pkgdesc="Yet Another Dotfiles Manager" +arch="noarch" +url="https://github.com/TheLocehiliosan/yadm" +license="GPL-3.0-only" +depends=" + bash + git + gawk + " +options="!check" # No testsuite +subpackages=" + $pkgname-bash-completion + $pkgname-doc + $pkgname-fish-completion + $pkgname-zsh-completion + " +source="$pkgname-$pkgver.tar.gz::https://github.com/TheLocehiliosan/yadm/archive/$pkgver.tar.gz" + +package() { + install -vDm755 yadm -t "$pkgdir/usr/bin" + install -vDm644 yadm.1 -t "$pkgdir/usr/share/man/man1" + install -vDm644 completion/bash/yadm -t "$pkgdir/usr/share/bash-completion/completions" + install -vDm644 completion/zsh/_yadm -t "$pkgdir/usr/share/zsh/site-functions" + install -vDm644 completion/fish/yadm.fish -t "$pkgdir/usr/share/fish/vendor_completions.d" +} + +fishcomp() { + depends="" + pkgdesc="Fish completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel fish" + + cd "$pkgdir" || return 0 + amove usr/share/fish/vendor_completions.d +} + +sha512sums=" +8ce9bc66a33fc3841e47293e002b834fac5760dc771ede37adfc47a9e911ddade23c0ef5379cf8f00cf9b24853abbc1263198b8439ca4e8a3acd5787fbd935cb yadm-3.2.1.tar.gz +"