summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f3b72b99799d62fe4334594cb1de1fcabb7c7f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=sokol-git
pkgver=r2649.bd7fa93
pkgrel=1
pkgdesc='Multiple purpose header libraries for C and C++ (git version)'
arch=('any')
url='https://github.com/floooh/sokol/'
license=('custom: zlib')
makedepends=('git')
provides=('sokol')
conflicts=('sokol')
source=('git+https://github.com/floooh/sokol.git')
sha256sums=('SKIP')

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

package() {
    install -D -m644 sokol/{,util/}*.h -t "${pkgdir}/usr/include"
    install -D -m644 sokol/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}