summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25c5211132dc5ed80810a830bf8caa7cc7b69048 (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: Popolon <popolon@popolon.org>
name=directfb2
pkgname=directfb2-git
pkgver=r148.0fdf5df39
pkgrel=3
pkgdesc="a fork of DirectFB whose purpose is to preserve and maintain the DirectFB graphics backend, particularly for use on embedded systems."
arch=('x86_64' 'armv7h' 'armv8' 'riscv32' 'riscv64')
url='https://directfb2.github.io/'
license=('LGPL')
makedepends=('git' 'meson' 'ninja' 'flux-git')
conflicts=('directfb')
provides=('directfb')
provides=('directfb')
source=("directfb2::git+https://github.com/directfb2/DirectFB2.git")
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/${name}"
  meson setup -Dmulti=true -Dprefix=/usr build/
  ninja -C build/
}

package() {
  cd "${srcdir}/${name}"
  DESTDIR=${pkgdir} ninja -C build/ install
}