summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68dee7648b3fc03908b5210c7635a463662c5cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Mario Finelli <mario at finel dot li>

_pkgname=ansible-gsetting
pkgname=${_pkgname}-git
pkgver=r18.3f21f84
pkgrel=1
pkgdesc="Ansible module for setting GSettings entries"
arch=(any)
url=https://github.com/jistr/ansible-gsetting
license=(Apache)
provides=($_pkgname)
conflicts=($_pkgname)
depends=(ansible)
makedepends=(git)
source=("git+https://github.com/jistr/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" \
    "$(git rev-parse --short HEAD)"
}

package() {
  cd "$_pkgname"

  install -Dm0644 README.md "$pkgdir/usr/share/doc/${_pkgname}/README.md"
  install -Dm0644 gsetting.py \
    "$pkgdir/usr/share/ansible/plugins/modules/gsetting.py"
}

# vim: set ts=2 sw=2 et: