commit a1613529bb71b9f535a0ad97abb9f4f9569367e8 Author: Maxwell G Date: Fri Sep 3 15:51:20 2021 -0500 Initial Commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9086a46 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = ansible-collection-kewlfft-aur + pkgdesc = Ansible collection that contains an Ansible module to manage packages from the AUR + pkgver = 0.9.0 + pkgrel = 1 + url = https://galaxy.ansible.com/kewlfft/{aur} + arch = any + license = GPL3 + depends = ansible-core + source = https://github.com/kewlfft/ansible-aur/archive/v0.9.0/ansible-aur-0.9.0.tar.gz + sha256sums = 4e3f51e8e0367b20c68a46158e3563f5a04243e820c817c51791990445b0ff87 + +pkgname = ansible-collection-kewlfft-aur diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03bb857 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.zst +/pkg/ +/src/ +ansible-aur-*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c3bf37b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Maxwell G +_collection_namespace=kewlfft +_collection_name=aur +_repo_name=ansible-aur +_github_url="https://github.com/${_collection_namespace}/${_repo_name}" + +pkgname="ansible-collection-${_collection_namespace}-${_collection_name}" +pkgver=0.9.0 +pkgrel=1 +pkgdesc="Ansible collection that contains an Ansible module to manage packages from the AUR" +arch=("any") +url="https://galaxy.ansible.com/${_collection_namespace}/{$_collection_name}" +license=("GPL3") +depends=("ansible-core") +source=("${_github_url}/archive/v${pkgver}/${_repo_name}-${pkgver}.tar.gz") +sha256sums=('4e3f51e8e0367b20c68a46158e3563f5a04243e820c817c51791990445b0ff87') + +build() { + cd "${_repo_name}-${pkgver}" + ansible-galaxy collection build +} + +package() { + cd "${_repo_name}-${pkgver}" + ansible-galaxy collection install -n -p \ + "${pkgdir}/usr/share/ansible/collections" \ + "${_collection_namespace}-${_collection_name}-${pkgver}.tar.gz" +} diff --git a/update b/update new file mode 100755 index 0000000..e3ff371 --- /dev/null +++ b/update @@ -0,0 +1,2 @@ +updpkgsums +makepkg --printsrcinfo > .SRCINFO