summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04c9d7b37404a13cdd583bbde18631fc75b849e2 (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
35
36
37
# Maintainer: Hoream <hoream@qq.com>

_pkgname=libsrm
pkgname="$_pkgname-git"
pkgver=0.7.2.1.r0.g8e69cc6
pkgrel=1
pkgdesc="A C library that simplifies the development of Linux DRM/KMS applications."
arch=('x86_64')
url="https://github.com/CuarzoSoftware/SRM"
license=('MIT')
depends=('libglvnd' 'libdrm' 'mesa' 'libdisplay-info' 'libinput' 'seatd' 'glibc' 'systemd-libs')
makedepends=('git' 'meson' 'ninja')
optdepends=()
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
options=()
source=($_pkgname::git+$url.git)
sha256sums=(SKIP)

pkgver () {
    cd "$srcdir/$_pkgname"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^v//'
}

build() {
    cd "$srcdir/$_pkgname/src"
    mkdir -p build
    arch-meson build
    ninja -C build
}

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