diff options
author | Vincent Grande | 2020-11-08 15:28:54 -0500 |
---|---|---|
committer | Vincent Grande | 2020-11-08 15:28:54 -0500 |
commit | c9436e3c6d4d5bd439c12037daa7a3b9473a9c35 (patch) | |
tree | 647e49348dc55bb591b1de224312c798ed7126dd | |
download | aur-c9436e3c6d4d5bd439c12037daa7a3b9473a9c35.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 39 | ||||
-rw-r--r-- | PKGBUILD | 77 |
2 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5d38d9d1b3cf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,39 @@ +pkgbase = sway-nosystemd-minimal-git + pkgdesc = Tiling Wayland compositor and replacement for the i3 window manager + pkgver = r6506.1be66c98 + pkgrel = 1 + url = https://swaywm.org + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = meson + makedepends = ninja + makedepends = wayland-protocols + depends = cairo + depends = json-c + depends = pango + depends = polkit + depends = pcre + depends = swaybg-git + depends = ttf-font + depends = wlroots-git + depends = xorg-server-xwayland + optdepends = alacritty: Terminal emulator used by the default config + optdepends = dmenu: Application launcher + optdepends = grim: Screenshot utility + optdepends = i3status: Status line + optdepends = mako: Lightweight notification daemon + optdepends = slurp: Select a region + optdepends = swayidle: Idle management daemon + optdepends = swaylock: Screen locker + optdepends = wallutils: Timed wallpapers + optdepends = waybar: Highly customizable bar + provides = sway + conflicts = sway + backup = etc/sway/config + source = sway-nosystemd-minimal::git+https://github.com/swaywm/sway.git + sha512sums = SKIP + +pkgname = sway-nosystemd-minimal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8984310aea3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: Drew DeVault <sir@cmpwn.com> +# Contributor: Antonin Décimo <antonin dot decimo at gmail dot com> +pkgname=sway-nosystemd-minimal-git +_pkgname=sway +pkgver=r6506.1be66c98 +pkgrel=1 +license=("MIT") +pkgdesc="Tiling Wayland compositor and replacement for the i3 window manager" +makedepends=( + "git" + "meson" + "ninja" +# "scdoc" + "wayland-protocols" +) +depends=( + "cairo" +# "gdk-pixbuf2" + "json-c" + "pango" + "polkit" + "pcre" + "swaybg-git" + "ttf-font" + "wlroots-git" + "xorg-server-xwayland" +) +optdepends=( + "alacritty: Terminal emulator used by the default config" + "dmenu: Application launcher" + "grim: Screenshot utility" + "i3status: Status line" + "mako: Lightweight notification daemon" + "slurp: Select a region" + "swayidle: Idle management daemon" + "swaylock: Screen locker" + "wallutils: Timed wallpapers" + "waybar: Highly customizable bar" +) +backup=(etc/sway/config) +arch=("i686" "x86_64") +url="https://swaywm.org" +source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git") +sha512sums=("SKIP") +provides=("sway") +conflicts=("sway") +#options=(debug) + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$_pkgname" + meson \ + -Dwerror=false \ + -Dtray=false \ + -Ddgk-pixbuf=false \ + -Dman-pages=false \ + --prefix /usr \ + "$srcdir/build" + ninja -C "$srcdir/build" +} + +package() { + install -Dm644 50-systemd-user.conf -t "$pkgdir/etc/sway/config.d/" + + cd "$_pkgname" + DESTDIR="$pkgdir" ninja -C "$srcdir/build" install + + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + for util in autoname-workspaces.py inactive-windows-transparency.py grimshot; do + install -Dm755 "contrib/$util" -t "$pkgdir/usr/share/$pkgname/scripts" + done +} |