summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d81b0b05d19b7b721072d3fcd4654f7492d5327 (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
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: SZanko, szanko at protonmail dot com
# Ex-Maintainer: Marat "Morion" Talipov <morion.self@gmail.com>
# Contributor: rostov <imn@pochta.ru>

pkgname=projectlibre
pkgver=1.9.3
pkgrel=1
pkgdesc="ProjectLibre is an open source project management software"
arch=('any')
replaces=('project-libre')
url="http://www.projectlibre.org"
license=('CPAL')
depends=('java-runtime')
source=("https://netcologne.dl.sourceforge.net/project/projectlibre/ProjectLibre/${pkgver}/projectlibre-${pkgver}.tar.gz"
        "projectlibre.png"
        "projectlibre.desktop"
        "projectlibre.patch"
        "projectlibre.xml")
md5sums=('00ba2b6f674fbdf781b04830c8d8a973'
         'cbeee50a6324b473c17899616f3effbd'
         'e93fab66e95915aaf9ef204d914b6e9f'
         '0bc5fff49aa9b7161aef58661cb22d98'
         '78bb62198c864aa6ac7a103c044f5b56')

build() {
    cd "$srcdir/$pkgname-$pkgver/"
    patch < $srcdir/projectlibre.patch
}

package() {
    cd "$srcdir/$pkgname-$pkgver/"

    # Dirs
    install -dm 755 "${pkgdir}"/usr/bin
    install -dm 755 "${pkgdir}"/usr/share/pixmaps
    install -dm 755 "${pkgdir}"/usr/share/applications
    install -dm 755 "${pkgdir}"/usr/share/mime/packages
    install -dm 755 "${pkgdir}"/usr/share/doc/projectlibre/license/third-party
    install -dm 755 "${pkgdir}"/usr/share/projectlibre/lib

    #Files
    install -m644 $srcdir/$pkgname-$pkgver/projectlibre.jar "${pkgdir}"/usr/share/projectlibre/
    install -m644 $srcdir/$pkgname-$pkgver/lib/*.jar "${pkgdir}"/usr/share/projectlibre/lib
    install -m755 $srcdir/$pkgname-$pkgver/projectlibre.sh "${pkgdir}"/usr/bin/projectlibre
    install -m644 $srcdir/$pkgname-$pkgver/license/{index.html,index_html_0.gif,license.rtf} "${pkgdir}"/usr/share/doc/projectlibre/license
    install -m644 $srcdir/$pkgname-$pkgver/license/third-party/* "${pkgdir}"/usr/share/doc/projectlibre/license/third-party
    install -m644 $srcdir/projectlibre.png "${pkgdir}"/usr/share/pixmaps
    install -m644 $srcdir/projectlibre.desktop "${pkgdir}"/usr/share/applications
    install -m644 $srcdir/projectlibre.xml "${pkgdir}"/usr/share/mime/packages/

    msg "Done"
}