summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45e02afb82e268d41da8a6103b98587079dcbde3 (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
46
47
48
49
#Maintainer: archdevlab <https://github.com/archdevlab>

pkgname=vkd3d-proton-bin-git
pkgdesc='Direct3D 12 to Vulkan translation library (Windows DLL binary files) (git version)'
pkgver=2.13.r48.gebe7279
pkgrel=1
url='https://github.com/HansKristian-Work/vkd3d-proton'
license=(LGPL)
arch=(x86_64)
depends=(vulkan-icd-loader)
makedepends=(git meson glslang wine xcb-util-keysyms xorgproto mingw-w64-gcc)
provides=(vkd3d-proton-bin vkd3d-proton-bin-git)
source=(git+https://github.com/HansKristian-Work/vkd3d-proton)
install=${pkgname}.install
options=(!buildflags)

pkgver(){
  cd "${srcdir}"/vkd3d-proton
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare(){
  cd "${srcdir}"/vkd3d-proton
  git submodule update --init --recursive
}

build(){
  rm -rf "${srcdir}"/build

  pushd "${srcdir}"/vkd3d-proton
  ./package-release.sh master "${srcdir}"/build --no-package
  popd
}

package(){
  install -D "${srcdir}"/build/vkd3d-proton-master/x86/* -t "$pkgdir/usr/share/vkd3d-proton/x86"
  install -D "${srcdir}"/build/vkd3d-proton-master/x64/* -t "$pkgdir/usr/share/vkd3d-proton/x64"
  install "${srcdir}"/build/vkd3d-proton-master/setup_vkd3d_proton.sh -t "$pkgdir/usr/share/vkd3d-proton/"

  # install license
  install -dm755 "${pkgdir}"/usr/share/licenses/"${pkgname}"
  install -m644 "${srcdir}"/vkd3d-proton/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/
  install -m644 "${srcdir}"/vkd3d-proton/COPYING "${pkgdir}"/usr/share/licenses/"${pkgname}"/
  install -m644 "${srcdir}"/vkd3d-proton/AUTHORS "${pkgdir}"/usr/share/licenses/"${pkgname}"/
}

sha256sums=('SKIP')

# vim:set ts=8 sts=2 sw=2 et: