added sway

This commit is contained in:
Ella-0 2021-07-17 16:10:51 +01:00
parent 4819200984
commit 4113b098fe
1 changed files with 48 additions and 0 deletions

48
pkgs/sway/build.sh Normal file
View File

@ -0,0 +1,48 @@
pkgname=sway
pkgver=master
fetch() {
curl -L "https://github.com/DCVIII/sway/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.gz
# local wlroots isn't new enough
curl -L "https://github.com/swaywm/wlroots/archive/refs/heads/master.tar.gz" -o wlroots-master.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
tar -xf wlroots-master.tar.gz
mkdir $pkgname-$pkgver/subprojects
mv wlroots-master $pkgname-$pkgver/subprojects/wlroots
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
CFLAGS=-'Wno-unused-const-variable -Wno-unused-function -Wno-error' \
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
-Dexamples=false \
-Dxwayland=disabled \
-Dxcb-errors=disabled \
-Dxcb-icccm=disbeld \
-Dwlroots:examples=false \
-Dwlroots:xcb-errors=disabled \
-Dwlroots:x11-backend=disabled \
-Dwlroots:default_library=static
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -rf $pkgdir/usr/lib/
rm -rf $pkgdir/usr/include/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}