iglunix/gui/sway/build.sh

45 lines
851 B
Bash
Raw Normal View History

2021-07-17 15:10:51 +00:00
pkgname=sway
pkgver=master
fetch() {
2021-12-26 12:40:14 +00:00
# curl -L "https://github.com/swaywm/sway/releases/download/$pkgver/sway-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
curl -L "https://github.com/swaywm/sway/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.gz
2021-07-17 15:10:51 +00:00
tar -xf $pkgname-$pkgver.tar.gz
mkdir $pkgname-$pkgver/build
2021-12-26 12:40:14 +00:00
cd $pkgname-$pkgver
2021-07-17 15:10:51 +00:00
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
2021-12-26 12:40:14 +00:00
-Ddefault-wallpaper=true \
-Dzsh-completions=true \
-Dbash-completions=false \
-Dfish-completions=false \
2021-07-17 15:10:51 +00:00
-Dxwayland=disabled \
2021-12-26 12:40:14 +00:00
-Dtray=disabled \
-Dgdk-pixbuf=disabled \
-Dman-pages=disabled
2021-07-17 15:10:51 +00:00
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
2021-12-26 12:40:14 +00:00
}
2021-07-17 15:10:51 +00:00
2021-12-26 12:40:14 +00:00
backup() {
echo /etc/sway/config
2021-07-17 15:10:51 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}