summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2023-11-11 12:44:19 -0800
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-11-25 05:00:21 -0600
commit21f3221859a8ea61ce3b0c5b65204ac130b3e03a (patch)
treec56d6381b8cbfc074dc274eaf53d381a10778504 /user
parentfd02fce5562df0fc4b51de0589d5a20cdc76b16b (diff)
downloadpackages-21f3221859a8ea61ce3b0c5b65204ac130b3e03a.tar.gz
packages-21f3221859a8ea61ce3b0c5b65204ac130b3e03a.tar.bz2
packages-21f3221859a8ea61ce3b0c5b65204ac130b3e03a.tar.xz
packages-21f3221859a8ea61ce3b0c5b65204ac130b3e03a.zip
user/libdisplay-info: new package
Diffstat (limited to 'user')
-rw-r--r--user/libdisplay-info/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/libdisplay-info/APKBUILD b/user/libdisplay-info/APKBUILD
new file mode 100644
index 000000000..c2599774e
--- /dev/null
+++ b/user/libdisplay-info/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=libdisplay-info
+pkgver=0.2.0
+pkgrel=0
+pkgdesc="Library for obtaining display information"
+url="https://gitlab.freedesktop.org/emersion/libdisplay-info/"
+arch="all"
+license="MIT"
+depends="hwdata"
+checkdepends="edid-decode"
+makedepends="meson"
+subpackages="$pkgname-dev"
+source="https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/$pkgver/downloads/libdisplay-info-$pkgver.tar.xz"
+
+prepare() {
+ default_prepare
+ rm -r subprojects # attempts to checkout/build edid-decode itself
+}
+
+build() {
+ meson setup \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ --wrap-mode=nofallback \
+ . output
+ meson compile -C output
+}
+
+check() {
+ meson test -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install -C output
+}
+
+sha512sums="6e910b832860d920a4be298a2b6925f701654bd7cdd8b3457e64663c25caa20a74b81b91f71878b9e7f5f70c5c067235f0c99293650231920c67d1241a61e1fb libdisplay-info-0.2.0.tar.xz"