summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e08d08c33ce3df8de308592dca46de7438d5192 (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
# Maintainer: Alex Henrie <alexhenrie24@gmail.com>
pkgname=process-map-git
pkgver=r3.6587605
pkgrel=1
pkgdesc='Visualize the virtual memory of a process'
arch=('x86_64')
url='https://github.com/arkanis/process-map'
license=('MIT')
depends=('libglvnd' 'libx11' 'noto-fonts' 'raylib')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/arkanis/process-map.git'
        'raylib.tar.gz::https://github.com/raysan5/raylib/archive/refs/tags/3.5.0.tar.gz'
        'process-map.diff')
noextract=('raylib.tar.gz')
sha256sums=('SKIP'
            '761985876092fa98a99cbf1fef7ca80c3ee0365fb6a107ab901a272178ba69f5'
            '16d15c1fb03c82a93f5ad803a999395ad7f9e2fded206c96b04f8fa1fe3a83f5')

prepare() {
	cd "$srcdir/${pkgname%-git}"
	cp "$srcdir/raylib.tar.gz" deps
	patch -p1 -i "$srcdir/${pkgname%-git}.diff"
}

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

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm755 map "$pkgdir/usr/bin/process-map"
	mkdir -p "$pkgdir/usr/share/process-map"
	cp *.fs *.vs "$pkgdir/usr/share/process-map"
}