summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e935ec74825a827be4a159b7d4459d92d10e80fa (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
# Maintainer: Can Celasun <can[at]dcc[dot]im>
pkgname=writerscafe
pkgver=2.42
pkgrel=2
pkgdesc="A set of power tools for all fiction writers, whether experienced or just starting out"
url="http://writerscafe.co.uk/"
license=("custom")
arch=('i686' 'x86_64')
depends=('libpng12' 'gtk2' 'libsm')
source_x86_64=(http://writerscafe.co.uk/WritersCafe-${pkgver}-x86_64.tar.gz writerscafe.sh)
source_i686=(http://writerscafe.co.uk/WritersCafe-${pkgver}-i386.tar.gz writerscafe.sh)
md5sums_i686=('5cb5a833a83448668e89047c47b4dd6a'
              'e5a70cdeabb167db5a91e463a8fc1857')
md5sums_x86_64=('10d2439f045622223d8b16b98ab185aa'
                'e5a70cdeabb167db5a91e463a8fc1857')

package() {
    cd "$srcdir"
    tar -xzf WritersCafeData.tar.gz

    rm -f WritersCafeData.tar.gz
    if [ "${CARCH}" = "x86_64" ]; then
        rm -f WritersCafe-${pkgver}-x86_64.tar.gz
    fi
    if [ "${CARCH}" = "i686" ]; then
        rm -f WritersCafe-${pkgver}-i386.tar.gz
    fi

    install -dm755 "${pkgdir}"/usr/share/writerscafe2
    install -D -m755 "${srcdir}"/writerscafe.sh "${pkgdir}"/usr/bin/writerscafe2

    mkdir -p "${pkgdir}"/usr/bin
    mkdir -p "${pkgdir}"/usr/share/applications
    mkdir -p "${pkgdir}"/usr/share/pixmaps

    cp -R * "${pkgdir}"/usr/share/writerscafe2    
    cp "${pkgdir}"/usr/share/writerscafe2/writerscafe2.desktop "${pkgdir}"/usr/share/applications/writerscafe2.desktop
    cp "${pkgdir}"/usr/share/writerscafe2/appicons/writerscafe128x128.png "${pkgdir}"/usr/share/pixmaps/writerscafe2.png
}