summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f7c4cf865d95034bfa92a02152630f183600a84 (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
# Maintainer: Lynden Rossin <lynden.rossin at gmail dot com>
# Contributor: Manish Munikar <munikarmanish at gmail dot com>

pkgname=argouml-bin
_pkgname=argouml
pkgver=0.35.1
pkgrel=1
pkgdesc="UML 1.4 modeller"
arch=('any')
url="https://argouml-tigris-org.github.io/"
license=('EPL')
depends=('java-runtime')
provides=('argouml')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/argouml-tigris-org/argouml/releases/download/VERSION_0_35_1/ArgoUML-0.35.1.tar.gz"
        "${_pkgname}.desktop");
noextract=()
sha256sums=('5e5230eb1bd29c545ae6fd56c0bdfbee86b1e6c2c538d6df22728fa3e3ab1639'
            'b3d19c56d8c81bb75d4a9b3b994acd2db5ccad144db7d6b0c0cd5487b54a9157')
validpgpkeys=()

package() {
    # Creating directories
    mkdir -p ${pkgdir}/opt/${_pkgname}
    mkdir -p ${pkgdir}/usr/bin/
    mkdir -p ${pkgdir}/usr/share/applications/

    msg2 "Copying source files..."
    cp -pR ${srcdir}/${_pkgname}-${pkgver}/* ${pkgdir}/opt/${_pkgname}/

    msg2 "Creating executable file..."
    ln -s "/opt/argouml/argouml.sh" ${pkgdir}/usr/bin/${_pkgname}

    msg2 "Creating desktop entry..."
    cp -p ${srcdir}/${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
}