# Contributor: Ɓukasz Jendrysik # Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=awesome pkgver=3.5.6 pkgrel=0 pkgdesc="lua-configurable window manager framework" url="http://awesome.naquadah.org/" arch="x86 x86_64" license="GPL2+" depends="imagemagick lua-lgi cairo-gobject" makedepends="lua lua-dev libxcb-dev pango-dev cairo-dev cmake gperf glib-dev imlib2-dev libxdg-basedir-dev libev-dev startup-notification-dev xcb-util-keysyms-dev xcb-util-image-dev xcb-util-dev xcb-util-wm-dev dbus-dev lua-doc gdk-pixbuf-dev xcb-util-cursor-dev" install="" subpackages="$pkgname-doc" source="http://awesome.naquadah.org/download/${pkgname}-${pkgver}.tar.xz " _srcdir="${srcdir}/${pkgname}-${pkgver}" _builddir="${srcdir}/build" prepare() { local i cd "$_srcdir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { mkdir "$_builddir" cd "$_builddir" [ "$ALPINE_LIBC" != "eglibc" ] && local _iconv="-liconv" cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONFDIR=/etc \ -DCMAKE_BUILD_TYPE=Release \ -DAWESOME_OPTIONAL_LDFLAGS=$_iconv \ "$_srcdir" make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="db1c31de752ab8e5f7aaa338718202af awesome-3.5.6.tar.xz" sha256sums="37f49de187825425cb3096fc870959d5fec9302b22ffd0f2874d8a18e85046d7 awesome-3.5.6.tar.xz" sha512sums="8d89bf46956276a8bcf106bb255c051e8382b08617e17691134a8f3e5db3ec9f7773581c02ce62d23e72499f7b1e60fe4322c211e41219b5bffd1897a96f6cf6 awesome-3.5.6.tar.xz"