summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94a906ed2aa0eb16986619fca3332cbf996b40ae (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
# Maintainer: Maxr1998 <max.rumpf1998@gmail.com>

pkgname=vramfs-git
_pkgbase=vramfs
pkgver=96.829b1f2
pkgrel=1
pkgdesc="VRAM based file system for Linux"
arch=('x86_64')
url="https://github.com/Overv/vramfs"
license=('MIT')
depends=('ocl-icd' 'opencl-driver' 'fuse3')
makedepends=('git' 'opencl-clhpp' 'opencl-headers')
provides=('vramfs')
source=("git+https://github.com/Overv/vramfs.git")
md5sums=("SKIP")

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

build() {
	cd "$_pkgbase"
	make
}

package() {
	cd "$_pkgbase"
	install -Dm755 bin/vramfs "$pkgdir/usr/bin/vramfs"
	awk '/The MIT License/,EOF { print substr($0, 5) }' README.md > LICENSE
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}