jbenden / i3-gaps-rounded

i3wm with gaps and rounded windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AUR package or a PKGBUILD

alba4k opened this issue · comments

(sorry, but I think I'll completely ignore the template <3)

It'd be really nice to have this on the AUR (even though it might cause some confusion since there is already an other package with a similar name), or at least having a PKGBUILD

By straight-up copying the already online one, I think it might look something like this

# Maintainer: Aaron Blasko <blaskoazzolaaaron@gmail.com>

pkgname=i3-gaps-rounded
pkgver=4.22
pkgrel=1
pkgdesc='An improved dynamic tiling window manager'
arch=('i686' 'x86_64')
url='http://i3wm.org/'
license=('BSD')
provides=('i3-wm')
conflicts=('i3-wm' 'i3-gaps' 'i3-gaps-next-git' 'i3-rounded-border-patch-git' 'i3-gaps-rounded-git')
groups=('i3' 'i3-vcs')
depends=('xcb-util-keysyms' 'xcb-util-wm' 'libev' 'yajl'
	'startup-notification' 'pango' 'perl' 'xcb-util-cursor' 'xcb-util-xrm'
	'libxkbcommon-x11')
makedepends=('git' 'bison' 'flex' 'asciidoc' 'xmlto' 'meson')
optdepends=('i3lock: For locking your screen.'
	'i3status: To display system information with a bar.')
options=('docs')
source=('git+https://github.com/jbenden/i3-gaps-rounded)
sha1sums=('SKIP')
pkgver() {
	cd "$srcdir/i3"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "i3-gaps-rounded"
	arch-meson \
		-Ddocs=true \
		-Dmans=true \
		../build
	meson compile -C ../build
}

package() {
	cd "i3-gaps-rounded"
	DESTDIR="${pkgdir}" meson install -C ../build

	install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 LICENSE
}

# vim:set ts=2 sw=2 et:

Or something like that