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"