2021-06-20 21:18:23 +00:00
|
|
|
pkgname=river
|
|
|
|
pkgver=master
|
|
|
|
_zig_wayland_ver=master
|
|
|
|
_zig_xkbcommon_ver=master
|
|
|
|
_zig_pixman_ver=master
|
|
|
|
_zig_wlroots_ver=master
|
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl -L "https://github.com/ifreund/river/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.gz
|
|
|
|
curl -L "https://github.com/ifreund/zig-wayland/archive/refs/heads/master.tar.gz" -o zig-wayland-$_zig_wayland_ver.tar.gz
|
|
|
|
curl -L "https://github.com/ifreund/zig-xkbcommon/archive/refs/heads/master.tar.gz" -o zig-xkbcommon-$_zig_xkbcommon_ver.tar.gz
|
|
|
|
curl -L "https://github.com/ifreund/zig-pixman/archive/refs/heads/master.tar.gz" -o zig-pixman-$_zig_pixman_ver.tar.gz
|
|
|
|
curl -L "https://github.com/swaywm/zig-wlroots/archive/refs/heads/master.tar.gz" -o zig-wlroots-$_zig_wlroots_ver.tar.gz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd deps
|
|
|
|
tar -xf ../../zig-wayland-$_zig_wayland_ver.tar.gz
|
|
|
|
mv zig-wayland-$_zig_wayland_ver/* zig-wayland
|
|
|
|
tar -xf ../../zig-xkbcommon-$_zig_xkbcommon_ver.tar.gz
|
|
|
|
mv zig-xkbcommon-$_zig_xkbcommon_ver/* zig-xkbcommon
|
|
|
|
tar -xf ../../zig-pixman-$_zig_pixman_ver.tar.gz
|
|
|
|
mv zig-pixman-$_zig_pixman_ver/* zig-pixman
|
|
|
|
tar -xf ../../zig-wlroots-$_zig_wlroots_ver.tar.gz
|
|
|
|
mv zig-wlroots-$_zig_wlroots_ver/* zig-wlroots
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-06-24 21:11:55 +00:00
|
|
|
zig build -Drelease-safe --prefix /usr
|
2021-06-20 21:18:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-06-24 21:11:55 +00:00
|
|
|
DESTDIR=$pkgdir zig build -Drelease-safe --prefix /usr install
|
2021-06-20 21:27:29 +00:00
|
|
|
# Igluinx has alacritty packaged
|
|
|
|
sed -i 's/foot/alacritty/g' $pkgdir/etc/river/init
|
2021-06-20 21:18:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
# cat COPYING
|
|
|
|
}
|