# Maintainer: Pier Luigi Fiorini pkgname=liri-wallpapers-git pkgver=v0.10.0.r43.ge06adbb pkgrel=1 pkgdesc="Wallpapers for Liri OS" arch=('any') url='https://liri.io' license=('CCPL') makedepends=('git' 'liri-cmake-shared-git') conflicts=('hawaii-wallpapers-git' 'liri-wallpapers') replaces=('hawaii-wallpapers-git' 'liri-wallpapers') provides=('liri-wallpapers') groups=('liri-git') _gitroot="git+https://github.com/lirios/wallpapers.git" _gitbranch=develop _gitname=wallpapers source=(${_gitname}::${_gitroot}#branch=${_gitbranch}) md5sums=('SKIP') pkgver() { cd ${srcdir}/${_gitname} ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } prepare() { mkdir -p build } build() { cd build cmake ../${_gitname} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd build make DESTDIR="$pkgdir" install }