summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b216a90b7b3eff2e8ad5198f95eee831d790f4fc (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
# Maintainer: Popolon <popolon(aLpopolonĀ°org>

pkgname=lfb-git
_pkgname=lfb
pkgver=r29.g8c7e98b
pkgrel=1
pkgdesc="Lua binding to Linux Framebuffers, using no external dependencys."
arch=('x86_64' armv7h aarch64 riscv32 riscv64)
url='https://github.com/max1220/lfb'
license=('MIT')
depends=('lua51' 'lua51-socket')
makedepends=('git')

source=(
  "git+https://github.com/max1220/${_pkgname}"
)

sha256sums=(SKIP)

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

build() {
  cd "${_pkgname}"
  make
}

package() {
  cd ${_pkgname}
  install -Dm644 lfb.h "${pkgdir}/usr/include/lfb.h"
  install -D lfb.so "${pkgdir}/usr/lib/lfb.so"
}