updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / smartsvn / PKGBUILD
blobbce5048f83520fcc59861f633a24fb6181bcbc14
1 #Maintainer: Rene Peinthor <peinthor@gmail.com>
2 pkgname=smartsvn
3 pkgver=6.6.11
4 _pkgver=6_6_11
5 pkgrel=1
6 pkgdesc="A Subversion(SVN) GUI client written in Java"
7 arch=("any")
8 url="http://www.syntevo.com/smartsvn/index.html"
9 license=('custom')
10 depends=("java-runtime" "desktop-file-utils" "sh")
11 makedepends=("python" "tidyhtml")
12 provides=(smartsvn=$pkgver)
13 source=(smartsvn.desktop downloader.py)
14 install="smartsvn.install"
15 md5sums=('caf0387a86dccae88f7e4b46cf33f36b'
16 '08c0959d0b3dd39a458c827b2de90b59'
18 smartsvnmd5sum='210d9fbb99c1992107f330efc41db9df'
21 extracted="$pkgname-$_pkgver"
23 build() {
24         cd "$srcdir"
25         python3 downloader.py smartsvn-generic-${_pkgver}.tar.gz
27         echo "${smartsvnmd5sum} *smartsvn-generic-${_pkgver}.tar.gz" | md5sum -c || error "md5sum doesn't match" | exit 1
29         tar xzf smartsvn-generic-${_pkgver}.tar.gz
32 package() {
33         cd "$srcdir"
35         install -D -m644 "${extracted}"/license.html "${pkgdir}/usr/share/licenses/${pkgname}/license.html"
36         mkdir -p "${pkgdir}"/opt
37         mv "${extracted}" ${pkgdir}/opt/$pkgname || return 1
39         install -D -m644 smartsvn.desktop "${pkgdir}"/usr/share/applications/smartsvn.desktop