Skip to content

Instantly share code, notes, and snippets.

@mrz
Created June 29, 2015 13:45
Show Gist options
  • Save mrz/21b5902687f46b52a578 to your computer and use it in GitHub Desktop.
Save mrz/21b5902687f46b52a578 to your computer and use it in GitHub Desktop.
tarsnap-gui PKGBUILD
_gitname=tarsnap-gui
pkgname=tarsnap-gui-git
pkgver=v0.5.r25.gfaf1507
pkgrel=1
pkgdesc="Cross platform GUI for the Tarsnap command line client"
arch=('i686' 'x86_64')
url="https://github.com/Tarsnap/tarsnap-gui"
license=('BSD')
depends=('qt5-base')
makedepends=('git')
provides=('tarsnap-gui')
source=("${_gitname}::git+https://github.com/Tarsnap/tarsnap-gui.git")
md5sums=('SKIP')
pkgver() {
cd $_gitname
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_gitname
qmake-qt5
make
}
package() {
cd $_gitname
install -Dm755 ./tarsnap-gui "${pkgdir}/usr/bin/tarsnap-gui"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment