From 7733c92c0434e5e129f37d703d34d9b3c48ca126 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Tue, 12 Dec 2023 17:50:31 -0700 Subject: [PATCH] Get package build working --- Makefile | 2 ++ package | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 65eb2c40b..c3e3a5a4c 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ clean: release: clean build $(RELOBJ) mkdir -p $(DIST) + # Force liboxide makefile to regenerate so that install targets get when being build in toltecmk + cd $(BUILD)/oxide/shared/liboxide && make qmake INSTALL_ROOT=$(DIST) $(MAKE) -C $(BUILD)/oxide install build: $(BUILD) $(OBJ) diff --git a/package b/package index f67a7f70e..27d8a0680 100644 --- a/package +++ b/package @@ -2,7 +2,7 @@ # Copyright (c) 2020 The Toltec Contributors # SPDX-License-Identifier: MIT -pkgnames=(oxide oxide-extra oxide-utils inject_evdev liboxide libsentry) +pkgnames=(oxide oxide-extra oxide-utils inject_evdev liboxide liboxide-dev libsentry) _oxidever=2.7 pkgver="$_oxidever~VERSION~" _sentryver=0.5.0 @@ -181,6 +181,19 @@ liboxide() { } } +liboxide-dev() { + pkgdesc="Shared library for oxide applications" + section="devel" + installdepends=("liboxide=$pkgver") + + package() { + install -D -m 755 -t "$pkgdir"/opt/lib/pkgconfig "$srcdir"/release/opt/lib/pkgconfig/liboxide.pc + install -D -m 755 -t "$pkgdir"/opt/include "$srcdir"/release/opt/include/epframebuffer.h + install -D -m 755 -t "$pkgdir"/opt/include "$srcdir"/release/opt/include/liboxide.h + cp -ar "$srcdir"/release/opt/include/liboxide/ "$pkgdir"/opt/include/ + } +} + libsentry() { pkgdesc="Sentry SDK for C, C++ and native applications." section="devel"