summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb2720d06ae2b333a9d71c89d604a12be4a73a60 (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
# Maintainer: Peter Jung ptr1337 <admin@ptr1337.dev>
# Maintainer: Piotr Gorski <piotrgorski@cachyos.org>

pkgname=ananicy-rules
pkgver=1.r55.478717a
pkgrel=1
groups=(cachyos)
arch=('any')
license=('GPL')
pkgdesc='CachyOS - ananicy-rules'
url='https://github.com/CachyOS/ananicy-rules'
source=("${pkgname}::git+https://github.com/CachyOS/${pkgname}.git")
sha256sums=('SKIP')
makedepends=('git')
conflicts=(ananicy-rules-git)

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

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