Skip to content

Instantly share code, notes, and snippets.

@tty170
Created Jun 16, 2014
Embed
What would you like to do?
astah-professional-pkgbuild
# Maintainer: Caleb Cushing <xenoterracide@gmail.com>
# Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de>
# Forked from Phillipe Smith <phillipe@archlinux.com.br>
pkgname='astah-professional'
_pkgname=${pkgname//-/_}
pkgver='6.8.0'
_pkgver=${pkgver//./_}
pkgrel=1
_pkgrel=d254c5
pkgdesc='easy-to-use UML2.x modeler'
arch=('any')
url="http://astah.net/editions/professional"
conflicts=('astah_community')
replaces=('astah_community')
license=('custom:none')
depends=('java-runtime')
source=( 'astah' 'astah.desktop' 'astah.png' "http://cdn.change-vision.com/files/${pkgname}-${_pkgver}-${_pkgrel}.zip" )
md5sums=(
'0c171df3eaeff01f13300bcd81050631'
'9c747aecbf99f099dd9083094dcb6764'
'df84e754977e1958963779b3a59182e1'
'f716e46c748f8a2f10fb3599f4653449'
)
build() {
: # nothing to build here
}
package() {
mkdir -p "$pkgdir"/usr/{bin,lib/"${pkgname}"/lib,share/{applications,pixmaps,mime/packages}}
cp -r ${srcdir}/${_pkgname}/lib ${pkgdir}/usr/lib/${pkgname}/
cp -r ${srcdir}/${_pkgname}/template ${pkgdir}/usr/lib/${pkgname}/
install -m644 ${srcdir}/${_pkgname}/astah-api.jar ${pkgdir}/usr/lib/${pkgname}
install -m644 ${srcdir}/${_pkgname}/astah-pro.jar ${pkgdir}/usr/lib/${pkgname}
install -m755 ${srcdir}/astah ${pkgdir}/usr/bin
install -m644 ${srcdir}/astah.desktop ${pkgdir}/usr/share/applications
install -m644 ${srcdir}/astah.png ${pkgdir}/usr/share/pixmaps
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment