Date: Tuesday, April 4, 2023 @ 09:20:15 Author: alerque Revision: 1434507
Cleanup more in line with Arch packaging guidelines Modified: hyprland/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-04 09:15:46 UTC (rev 1434506) +++ PKGBUILD 2023-04-04 09:20:15 UTC (rev 1434507) @@ -9,8 +9,11 @@ url="https://github.com/hyprwm/${pkgname^}" license=(BSD) depends=(cairo + glibc glslang libdisplay-info + libdrm + libglvnd libinput libliftoff libx11 @@ -50,13 +53,12 @@ sha256sums=('779c35b0256cffe681586e4c34d63cf46fe4f263eff5370d06ae77a96e5de01f') prepare() { - ln -s hyprland-source "$_archive" + ln -sf hyprland-source "$_archive" cd "$_archive" make fixwlr } build() { - set -x cd "$_archive" pushd subprojects/wlroots meson build/ --prefix="$srcdir/tmpwlr" --buildtype=release @@ -76,9 +78,11 @@ package() { cd "$_archive" - install -Dm0755 -t "$pkgdir/usr/bin" hyprland-source/build/{Hyprland,hyprctl} - install -Dm0644 -t "$pkgdir/usr/share/hyprland" hyprland-source/assets/*.png - install -Dm0644 -t "$pkgdir/usr/share/wayland-sessions" hyprland-source/example/hyprland.desktop - install -Dm0644 -t "$pkgdir/usr/share/hyprland" hyprland-source/example/hyprland.conf + 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 + install -Dm0644 -t "$pkgdir/usr/share/wayland-sessions" "example/$pkgname.desktop" + install -Dm0644 -t "$pkgdir/usr/share/$pkgname" "example/$pkgname.conf" + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE install -Dm0755 -t "$pkgdir/usr/lib" "$srcdir/tmpwlr/lib/libwlroots.so.12032" }
