blob: 944b5e2c61e09a60f5fce99b1749bb593780b182 (
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
|
pkgname=vk-layer-flimes-git
pkgver=1.1.5.r0.g877ddfb
pkgrel=2
pkgdesc="Vulkan frame limiter"
arch=('x86_64')
url="https://github.com/zaps166/vk-layer-flimes"
license=('MIT')
makedepends=('git' 'cmake' 'vulkan-headers' 'lib32-gcc-libs')
optdepends=('vk-layer-flimes-gui-git: GUI for external framerate control')
source=("git+https://github.com/zaps166/vk-layer-flimes.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/vk-layer-flimes"
git describe --long --tags | cut -c 2- | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/vk-layer-flimes"
mkdir -p build-64
cd build-64
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
cd "${srcdir}/vk-layer-flimes"
mkdir -p build-32
cd build-32
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib32 -DCOMPILE_32_BIT=ON
make
}
package() {
cd "${srcdir}/vk-layer-flimes/build-32"
DESTDIR=${pkgdir} make install
cd "${srcdir}/vk-layer-flimes/build-64"
DESTDIR=${pkgdir} make install
install -Dm644 "${srcdir}/vk-layer-flimes/LICENSE" "$pkgdir/usr/share/licenses/vk-layer-flimes/LICENSE"
}
|