blob: 7463ba686d761c8e32ffc4c694baaf4ac754e7cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Willem Albeda <willem at albeda dot net>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=astah-uml
pkgver=9.2.0.0248cd.0
_pkgver=9.2.0.0248cd-0
pkgrel=1
url='https://astah.net/products/astah-uml'
pkgdesc='Lightweight and easy-to-use UML2.x modeler (With trial)'
arch=('i686' 'x86_64')
license=('custom')
depends=('java-runtime=8' 'lib32-glibc' 'hicolor-icon-theme' 'bash')
conflicts=('astah-community' 'astah-professional')
options=('!emptydirs' '!strip')
source=("http://cdn.change-vision.com/files/astah-uml-${_pkgver}.noarch.rpm")
sha256sums=('2783399f4a45bc3060a46bbde9eb3aa8c57484f857871e6894f34c23057287f4')
package() {
cp -aR "${srcdir}/usr" "${pkgdir}"
mkdir -p "${pkgdir}/opt/"
mv "${pkgdir}/usr/lib/astah_uml" "${pkgdir}/opt/astah-uml"
mkdir -p "${pkgdir}/usr/share/doc/astah-uml/"
mv "${pkgdir}/opt/astah-uml"/ReferenceManual-* "${pkgdir}/usr/share/doc/astah-uml/"
mkdir -p "${pkgdir}/usr/share/licenses/astah-uml"
mv "${pkgdir}/opt/astah-uml"/AstahLicenseAgreement-e.txt "${pkgdir}/usr/share/licenses/astah-uml/LICENSE"
mv "${pkgdir}/opt/astah-uml"/Astah_API_sample_program_license_agreement.txt "${pkgdir}/usr/share/licenses/astah-uml/LICENSE-API"
rm "${pkgdir}/usr/bin/astah-uml"
ln -s /opt/astah-uml/astah-uml "${pkgdir}/usr/bin"
install -Dm644 "${pkgdir}/opt/astah-uml"/mime-astah_uml.xml "${pkgdir}/usr/share/mime/packages/astah_uml.xml"
install -Dm644 "${pkgdir}/opt/astah-uml"/astah_uml.desktop -t \
"${pkgdir}/usr/share/applications"
install -Dm644 "${pkgdir}/opt/astah-uml"/astah_uml.png -t \
"${pkgdir}/usr/share/pixmamps"
install -Dm644 "${pkgdir}/opt/astah-uml"/astah_uml-doc.png -t \
"${pkgdir}/usr/share/icons/hicolor/32x32/mimetypes/"
rm "${pkgdir}/opt/astah-uml"/mime-astah_uml.xml
rm "${pkgdir}/opt/astah-uml"/astah_uml.desktop
rm "${pkgdir}/opt/astah-uml"/astah_uml-doc.png
sed -i '/#!\/bin\/sh/a export PATH="\$JAVA_HOME\/bin:\$PATH"' "${pkgdir}/opt/astah-uml/astah-uml"
sed -i '/#!\/bin\/sh/a export JAVA_HOME=\/usr\/lib\/jvm\/java-8-openjdk\/jre' "${pkgdir}/opt/astah-uml/astah-uml"
}
|