summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bedf5a915cb72ecedc8c6aff30829291262056aa (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
# Maintainer: rc.poison <rc dot poison at gmail dot com>

pkgbase=dxvk-cache-pool-git
_pkgname=dxvk-cache-pool
pkgname=("dxvk-cache-client-git" "dxvk-cache-server-git")
pkgver=1.1.r0.g9a8e92a
pkgrel=1
pkgdesc='Client/server to share DXVK pipeline caches for smoother wine gaming.'
arch=('any')
url='https://github.com/rcpoison/dxvk-cache-pool'
license=('Apache 2')
depends=('java-runtime>=8')
makedepends=('git' 'maven' 'java-environment>=8')
source=('git+https://github.com/rcpoison/dxvk-cache-pool.git')
sha1sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd "$_pkgname"
  ./build.sh
}

package_dxvk-cache-server-git() {
  cd "$_pkgname"
  install -Dm755 dxvk-cache-server -t "$pkgdir"/usr/bin
  install -Dm644 dxvk-cache-server.service -t "$pkgdir"/usr/lib/systemd/system/
}

package_dxvk-cache-client-git() {
  cd "$_pkgname"
  install -Dm755 dxvk-cache-client -t "$pkgdir"/usr/bin
  install -Dm755 dxvk-cache-pool.sh -t "$pkgdir"/etc/profile.d
}