summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71a750dbc2494989238cfe49cfeedee9df69e91c (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=tfblib
pkgver=0.1.1
pkgrel=1
pkgdesc="Low-level graphics library for drawing to the framebuffer"
arch=('x86_64')
url="https://github.com/vvaltchev/tfblib"
license=('BSD')
depends=('glibc')
makedepends=('cmake')
provides=('libtfb.so')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('957cdf360ed247cd0e4ced377ae9a6e7261d60a5216cd1f63e50814d6bdd3c8e')

build() {
	cmake \
		-B build \
		-S "$pkgname-$pkgver" \
		-Wno-dev \
		-DCMAKE_BUILD_TYPE=None \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_INSTALL_PREFIX=/usr
	make -C build
}

package() {
	make -C build install DESTDIR="$pkgdir/"
	cd "$pkgname-$pkgver"
	install -Dm644 LICENSE NOTICE -t "$pkgdir/usr/share/licenses/$pkgname/"
}