Created
June 29, 2015 13:45
-
-
Save mrz/21b5902687f46b52a578 to your computer and use it in GitHub Desktop.
tarsnap-gui PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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