summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab76a44883cc92493b312e411f0bd6853081c2a9 (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
pkgname='vrrtest-git'
pkgver=r33.79bd724
pkgrel=1
pkgdesc='A very small utility to test variable refresh rate.'
arch=('x86_64')
url='https://github.com/Nixola/VRRTest'
license=('zlib')
makedepends=('git')
depends=('love')
source=(
  'vrrtest_src::git+https://github.com/Nixola/VRRTest.git'
  'vrrtest'
  'vrrtest.desktop'
)
sha256sums=(
  'SKIP'
  'SKIP'
  'SKIP'
)

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

package() {
  mkdir -p "$pkgdir/opt/vrrtest"
  cp -r "$srcdir/vrrtest_src/." "$pkgdir/opt/vrrtest"
  rm -rf "$pkgdir/opt/vrrtest/.git"

  install -Dm755 -t "$pkgdir/usr/bin" vrrtest

  install -D -m644 "$srcdir/vrrtest.desktop" "$pkgdir/usr/share/applications/vrrtest.desktop"
}