blob: b319becfcb656b79210e56f4e3a2a92e6b1a9510 (
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
38
39
|
# Maintainer: KnownGecko <KnownGeckom@protonmail.com>
# Forked From: Hoream <hoream@qq.com>
_cdname=SRM
_realname="libsrm"
pkgname="libsrm-devel-git"
pkgver=0.7.2.1.r20.g6608abd
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=("$_realname")
conflicts=("$_realname")
replaces=()
options=()
source=(git+https://github.com/CuarzoSoftware/SRM.git#branch=devel)
sha256sums=(SKIP)
pkgver () {
cd "$srcdir/$_cdname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^v//'
}
build() {
cd "$srcdir/$_cdname/src"
mkdir -p build
arch-meson build
ninja -C build
}
package() {
cd "$srcdir/$_cdname/src"
DESTDIR="${pkgdir}/" ninja -C build install
}
|