Skip to content
Snippets Groups Projects
Unverified Commit 08b2573e authored by Felix Richter's avatar Felix Richter
Browse files

add plugin headers and pkgconf

parent f79752b9
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
pkgname=hyprland
pkgver=0.26.0
pkgrel=1
pkgrel=2
pkgdesc='a highly customizable dynamic tiling Wayland compositor'
arch=(x86_64 aarch64)
url="https://github.com/hyprwm/${pkgname^}"
......@@ -80,6 +80,19 @@ build() {
package() {
cd "$_archive"
find src -name '*.h*' -print0 | cpio --quiet -0dump "$pkgdir/usr/include/hyprland"
pushd subprojects/wlroots/include
find . -name '*.h*' -print0 | cpio --quiet -0dump "$pkgdir/usr/include/hyprland/wlroots"
popd
pushd subprojects/wlroots/build/include
find . -name '*.h*' -print0 | cpio --quiet -0dump "$pkgdir/usr/include/hyprland/wlroots"
popd
mkdir -p "$pkgdir/usr/include/hyprland/protocols"
cp protocols/*-protocol.h "$pkgdir/usr/include/hyprland/protocols"
pushd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
popd
install -Dm0644 -t "$pkgdir/usr/share/pkgconfig" build/hyprland.pc
install -Dm0755 -t "$pkgdir/usr/bin" build/Hyprland
install -Dm0755 -t "$pkgdir/usr/bin" hyprctl/hyprctl
install -Dm0644 -t "$pkgdir/usr/share/$pkgname" assets/*.png
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment