summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 397bb356de258cce29098a17ddd62c502cf826d1 (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
# Maintainer: Popolon <popolon@popolon.org>
name=directfb2-lite
pkgname=directfb2-lite-git
pkgver=r16.1446944
pkgrel=1
pkgdesc="Lightweight Toolkit Enabler is a simple user interface library on top of DirectFB"
arch=('x86_64' 'armv7h' 'armv8' 'riscv32' 'riscv64')
url='https://directfb2.github.io/'
license=('LGPL')
makedepends=('git' 'meson' 'ninja' 'flux-git')
depends=('directfb2-git')
source=("${name}::git+https://github.com/directfb2/LiTE.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 -Dprefix=/usr build/
  ninja -C build/
}

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