summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a45019ddc92722e22bc588544808aaa17bc71c09 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>

pkgname=aconfmgr-git
pkgver=r634.ca09eea
pkgrel=1
pkgdesc="A configuration manager for Arch Linux"
arch=('any')
url="https://github.com/CyberShadow/aconfmgr"
license=('MIT')
depends=(
  'bash'
  # "Optional" in the sense that without these, `aconfmgr --help` will
  # run but they will be needed to actually save/restore
  # configurations
  'pacman' 'grep' 'gawk' 'diffutils' 'pacutils'
)
makedepends=('git')
optdepends=(
  # AUR helpers
  'aurman: aurman integration'
  'pacaur: pacaur integration'
  'yaourt: yaourt integration'
  'yay: yay integration'
  # used for building AUR packages
  'git: for fetching AUR packages'
  # other helpers
  'augeas: configuration file editing'
)
source=("git+https://github.com/CyberShadow/aconfmgr"
	    "license.txt")
md5sums=('SKIP'
         '2c153a787e3a0974a4d4c5a005c53d99')

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

package() {
  install -D -m755 -t "$pkgdir/usr/bin" "$srcdir/aconfmgr/aconfmgr"
  install -D -m644 -t "$pkgdir/usr/lib/aconfmgr" "$srcdir/aconfmgr/src/"*
  install -D -m644 -t "$pkgdir/usr/share/doc/aconfmgr" "$srcdir/aconfmgr/README.md"
  install -D -m644 -t "$pkgdir/usr/share/man/man1" "$srcdir/aconfmgr/aconfmgr.1"
  install -D -m644 -t "$pkgdir/usr/share/licenses/$pkgname" license.txt
}