diff options
author | q234rty | 2023-04-29 00:46:39 +0800 |
---|---|---|
committer | q234rty | 2023-04-29 00:46:39 +0800 |
commit | 2efd622c3aea6776890a0b992225dc0bdfe70cf9 (patch) | |
tree | f6a4ef000b927bd00c9582e05bab82c944ccae6d | |
parent | 6266baf25fa1d93086fb1c2c75e90d942f0d4922 (diff) | |
download | aur-2efd622c3aea6776890a0b992225dc0bdfe70cf9.tar.gz |
Install headers used by plugins
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 18 insertions, 9 deletions
@@ -1,9 +1,14 @@ pkgbase = hyprland-hidpi-xprop-git pkgdesc = A dynamic tiling Wayland compositor based on wlroots that doesn't sacrifice on its looks. - pkgver = r2689.6519c030 + pkgver = r2837.dbb6d9d1 pkgrel = 1 url = https://github.com/hyprwm/Hyprland - arch = any + arch = i686 + arch = x86_64 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 license = BSD makedepends = git makedepends = cmake @@ -5,10 +5,10 @@ _pkgname="hyprland" pkgname="${_pkgname}-hidpi-xprop-git" -pkgver=r2689.6519c030 +pkgver=r2837.dbb6d9d1 pkgrel=1 pkgdesc="A dynamic tiling Wayland compositor based on wlroots that doesn't sacrifice on its looks." -arch=(any) +arch=("i686" "x86_64" "arm" "armv6h" "armv7h" "aarch64") url="https://github.com/hyprwm/Hyprland" license=('BSD') depends=( @@ -94,9 +94,8 @@ build() { make fixwlr cd "./subprojects/wlroots/" && meson setup build/ --prefix="${srcdir}/tmpwlr" --buildtype=plain && ninja -C build/ && mkdir -p "${srcdir}/tmpwlr" && ninja -C build/ install && cd ../.. cd "./subprojects/udis86/" && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=None -H./ -B./build -G Ninja && cmake --build ./build --target all && cd ../.. - make protocols mkdir -p build && cd build - cmake -G Ninja -DCMAKE_BUILD_TYPE=None .. + cmake -G Ninja -DCMAKE_BUILD_TYPE=None -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr .. ninja cd "${srcdir}/${_pkgname}" cd ./hyprctl && make all && cd .. @@ -104,14 +103,19 @@ build() { package() { cd "${srcdir}/${_pkgname}" - mkdir -p "${pkgdir}/usr/share/wayland-sessions" - mkdir -p "${pkgdir}/usr/share/hyprland" install -Dm755 build/Hyprland -t "${pkgdir}/usr/bin" install -Dm755 hyprctl/hyprctl -t "${pkgdir}/usr/bin" install -Dm644 assets/*.png -t "${pkgdir}/usr/share/hyprland" install -Dm644 example/hyprland.desktop -t "${pkgdir}/usr/share/wayland-sessions" install -Dm644 example/hyprland.conf -t "${pkgdir}/usr/share/hyprland" - install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}" + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 subprojects/wlroots/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-wlroots" install -Dm644 docs/*.1 -t "${pkgdir}/usr/share/man/man1" install -Dm755 ../tmpwlr/lib/libwlroots.so.* -t "${pkgdir}/usr/lib" + install -d "${pkgdir}/usr/include/hyprland/protocols" + cp -R src ${pkgdir}/usr/include/hyprland/ + cp -R ../tmpwlr/include/* ${pkgdir}/usr/include/hyprland/ + find ${pkgdir}/usr/include/hyprland/ -type f ! -name '*.h*' -delete + cp protocols/*-protocol.h ${pkgdir}/usr/include/hyprland/protocols + install -Dm644 build/hyprland.pc -t "${pkgdir}/usr/share/pkgconfig" } |