blob: 7c476d0732b24324917070b06c115cdad7f001c8 (
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
|
# Maintainer: Nicholas Wang <me#nicho1as.wang>
pkgname=libwb-git
pkgver=20191031
pkgrel=2
pkgdesc="library for CUDA teaching used by webgpu.com"
arch=('x86_64')
license=('MIT')
depends=('gcc-libs')
optdepends=('cuda')
makedepends=('git' 'gcc' 'cmake')
replaces=('libwb')
conflicts=('libwb')
provides=('libwb')
source=('libwb::git+https://github.com/nicholascw/libwb#branch=master')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}"/libwb
git log -1 --format="%cd" --date=short | sed 's|-||g'
}
build() {
cd "${srcdir}"/libwb
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON .
make libwb
}
package() {
install -Dm644 "${srcdir}"/libwb/LICENSE.TXT "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
install -Dm755 "${srcdir}"/libwb/libwb.so "${pkgdir}"/usr/lib/libwb.so
mkdir -p "${pkgdir}"/usr/include/libwb/vendor
cp -pv "${srcdir}"/libwb/*.h "${pkgdir}"/usr/include/libwb/
cp -pv "${srcdir}"/libwb/vendor/*.hpp "${pkgdir}"/usr/include/libwb/vendor/
chmod -R 644 "${pkgdir}"/usr/include/libwb/*.h
}
|