# Maintainer: Adrián Pérez de Castro pkgdesc='Image viewer for for Arcan' pkgname='arcan-aloadimage-git' pkgver=0.5.4.6.r10.gdb2f991e pkgrel=1 license=('GPL2' 'LGPL' 'custom:BSD') arch=('x86_64') depends=('arcan') makedepends=('cmake' 'git') provides=('arcan-aloadimage') conflicts=('arcan-aloadimage') url='https://arcan-fe.com/' source=("${pkgname}::git+https://github.com/letoram/arcan.git") sha512sums=('SKIP') pkgver () { cd "${pkgname}" ( 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)" ) } build () { rm -rf "${pkgname}/build" mkdir "${pkgname}/build" cd "${pkgname}/build" cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ ../src/tools/aloadimage make } package () { cd "${pkgname}/build" DESTDIR="${pkgdir}" make install install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../COPYING # Fix location of manual pages. if [[ -d ${pkgdir}/usr/man ]] ; then install -dm755 "${pkgdir}/usr/share" mv "${pkgdir}/usr/man" "${pkgdir}/usr/share" fi }