# Maintainer: Salamandar pkgname=livewallpaper pkgdesc="OpenGL powered animated wallpapers with configuration utility, autostart, and application indicator." url="https://launchpad.net/livewallpaper" license=('GPL3') pkgver=0.5.0 pkgrel=3 arch=('x86_64' 'i686') makedepends=('intltool' 'xcftools' 'cmake' 'vala') depends=( 'libpeas' 'upower' 'libappindicator-gtk3' 'gobject-introspection' 'python' 'python-cairo' 'python-opengl' 'glew' ) source=( 'https://launchpad.net/livewallpaper/0.5/0.5.0/+download/livewallpaper-0.5.0.tar.gz' 'livewallpaper.patch' ) sha256sums=( 'f4ce97a721015b135eb675915eb306c1fb256e680d480fe13e4fe6ca81c7e04e' '09945264707109bbebca632b40a7607b3ef882fe2fadd15d235f18ef0763a279' ) prepare() { cd "${srcdir}/${pkgname}-${pkgver}" # Patches: # * Please use python3 # * Fix ref # * Fix old API (fromstring/tostring to frombytes/tobytes) # * CMake : remove debian dir # * CMake : disable doc generation (needs gtk-doc) patch -p1 -l -i "${srcdir}/livewallpaper.patch" } build() { cd "${srcdir}/${pkgname}-${pkgver}" rm -rf "build" mkdir "build" pushd "build" >/dev/null cmake -DCMAKE_INSTALL_PREFIX=/usr .. make DESTDIR="${pkgdir}" } package() { cd "${srcdir}/${pkgname}-${pkgver}" pushd "build" >/dev/null make DESTDIR="${pkgdir}" install }