# Maintainer: Lars Rustand # Upstream Maintainer (i3-wm): Thorsten Töpper # Patch Contributor: Marius Muja # Patch Contributor: mickael9 # Patch Contributor: Esteve Varela Colominas # Contributor: cornholio pkgname=i3-wm-iconpatch _pkgsourcename=i3 pkgver=4.18.1 pkgrel=1 pkgdesc='An improved dynamic tiling window manager (with titlebar icon patch)' arch=('i686' 'x86_64') url='http://i3wm.org/' license=('BSD') provides=('i3-wm') conflicts=('i3-wm') groups=('i3') depends=('xcb-util-cursor' 'xcb-util-keysyms' 'xcb-util-wm' 'xcb-util-xrm' 'libev' 'yajl' 'startup-notification' 'pango' 'libxkbcommon-x11') makedepends=('bison' 'flex' 'pkg-config') optdepends=('dmenu: As menu.' 'i3lock: For locking your screen.' 'i3status: To display system information with a bar.' 'perl: i3-save-tree and i3-dmenu-desktop' 'perl-anyevent-i3: Features like saving the layout.' 'perl-json-xs: Features like saving the layout.') options=('docs' '!strip') source=("http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2" "http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2.asc" "iconsupport.patch") sha1sums=('7a9d3fb235ca9916065751b9bfe2307c25875e7c' 'SKIP' 'a5bcc549ef1e429485d9f247b4ed20dde6f88a8a') validpgpkeys=('424E14D703E7C6D43D9D6F364E7160ED4AC8EE1D') # Michael Stapelberg prepare() { cd "$srcdir/$_pkgsourcename-$pkgver" patch -p1 < "$srcdir/iconsupport.patch" } build() { cd "$srcdir/$_pkgsourcename-$pkgver" [ -d build ] && rm -rf build mkdir build cd build ../configure --prefix=/usr --sysconfdir=/etc # In order to avoid problems with bison use only a single process MAKEFLAGS="-j1" make CPPFLAGS+="-U_FORTIFY_SOURCE" } package() { cd "$srcdir/$_pkgsourcename-$pkgver/build" make DESTDIR="$pkgdir/" install mkdir -p "${pkgdir}/usr/share/man/man1/" install -m644 ../man/*.1 "${pkgdir}/usr/share/man/man1/" install -Dm644 ../LICENSE \ ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } # vim:set ts=2 sw=2 et: