Skip to content

Commit

Permalink
add libdisplay-info-git pacakge
Browse files Browse the repository at this point in the history
  • Loading branch information
BoukeHaarsma23 committed Nov 29, 2023
1 parent 8dd8221 commit 55fcc0b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/libdisplay-info-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
BUILDENV+=(!check)

pkgname=libdisplay-info-git
pkgver=0.1.1.23.gae6cb52
pkgrel=1
pkgdesc='EDID and DisplayID library'
url='https://gitlab.freedesktop.org/emersion/libdisplay-info'
arch=('x86_64')
license=('MIT')
source=("git+$url")
sha1sums=('SKIP')
makedepends=(git hwdata meson ninja python)
conflicts=(libdisplay-info)
provides=(libdisplay-info.so)

pkgver() {
cd libdisplay-info
git describe --tags | sed 's/\-/\./g'
}

build() {
arch-meson libdisplay-info build
ninja -C build
}

check() {
ninja -C build test
}

package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" "libdisplay-info/LICENSE"
}

0 comments on commit 55fcc0b

Please sign in to comment.