summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c79896abdda9217d85e54b69fb38e1425982727 (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
# Maintainer: Julien Virey <julien.virey@gmail.com>

pkgname=cachyos-ananicy-rules-git
_gitname=ananicy-rules
pkgver=20230613.r319.gf139cf4
pkgrel=1
groups=('cachyos')
arch=('any')
license=('GPL')
pkgdesc='CachyOS - ananicy-rules'
url='https://github.com/CachyOS/ananicy-rules'
depends=('ananicy-cpp')
makedepends=('git')
source=("git+https://github.com/CachyOS/$_gitname")
sha256sums=('SKIP')
replaces=('ananicy-rules-git' 'cachyos-ananicy-rules')
provides=('ananicy-rules-git' 'cachyos-ananicy-rules')
conflicts=('ananicy-rules-git' 'cachyos-ananicy-rules' 'ananicy-git')
backup=(etc/ananicy.d/ananicy.conf)

pkgver() {
  cd $_gitname
  echo "$(git show --format='%cI' -q master | sed 's/T.*//g;s/-//g').r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

prepare() {
  cd $_gitname
  rm -f README.md
}

package() {
  cd $_gitname
  install -d "$pkgdir/etc/ananicy.d"
  cp -rf $srcdir/$_gitname/* "$pkgdir/etc/ananicy.d"
}