Skip to content

Commit

Permalink
Get package build working
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 13, 2023
1 parent aea2cec commit 7733c92
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 14 additions & 1 deletion package
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7733c92

Please sign in to comment.