# Contributor: Thomas Battermann # PKGBUILD for ArchLinux pkgname=paste42 pkgver=20161108.1 pkgrel=1 pkgdesc="Utility to post text files to paste42.de using curl" arch=('any') url="https://paste42.de/" license=('GPL') depends=('curl' 'bash') makedepends=('git') source=() _gitroot="git://git.thomasba.de/paste42.git" _gitname="paste42" build() { cd ${srcdir} msg "Connecting to GIT server...." if [ -d ${_gitname} ] ; then cd ${_gitname} && git pull origin msg "The local files are updated." else git clone ${_gitroot} cd ${_gitname} fi msg "GIT checkout done or server timeout" } package() { install -D -m755 "${srcdir}/${_gitname}/${_gitname}.sh" "${pkgdir}/usr/bin/${_gitname}" || return 1 }