summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49ae846d2cbb6bc0c44424b9c98c9721c465a3ea (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
# Maintainer: Slash <demodevil5 [at] yahoo [dot] com>

pkgname=maraschinoproject-git
pkgver=0.3.0.r282.gebd9222
pkgrel=1
pkgdesc="Web-based frontend for XBMC, Sickbeard, Sabnzbd, and more."
arch=('any')
url="http://www.maraschinoproject.com/"
license=('MIT')
depends=('python2')
makedepends=('git')
backup=('etc/conf.d/maraschino')
install='maraschino.install'
source=('maraschino.sh' 'maraschino.confd' 'maraschino.service' 'tmpfiles.d'
'maraschino::git+https://github.com/mrkipling/maraschino.git')
sha256sums=('b711e56f3275aa2e600a737471e2f3d8adc0eb7452e7fbf0937cb4584f939e48'
            '2f9073c6cddd6a73a1f156c9280da757c8ea64c0134da70696705794a8d38aa5'
            '51d8698cac6b8a4d70e71aaa6bda1dbc071a3beb77557b3c5abfb33a78e63b6b'
            'b66d6b0411d98bbee914ac2ab1bc7be1a4a1ab58580d948207be9114b3ac2890'
            'SKIP')

pkgver() {
    cd "${srcdir}/maraschino"
    git describe --long | sed -E 's/^v//g;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
    # Make destination directories
    install -d "${pkgdir}/usr/lib"
    install -d "${pkgdir}/var/lib/maraschino"

    # Move Maraschino files to destination directory
    cp -r "${srcdir}/maraschino" "${pkgdir}/usr/lib/maraschino"

    # Install Launcher Script
    install -D -m755 "${srcdir}/maraschino.sh" \
        "${pkgdir}/usr/bin/maraschino"

    # Install systemd Script
    install -D -m644 "${srcdir}/maraschino.service" \
        "${pkgdir}/usr/lib/systemd/system/maraschino.service"

    # Install Daemon Configuration
    install -D -m644 "${srcdir}/maraschino.confd" \
        "${pkgdir}/etc/conf.d/maraschino"

    # Install tempfiles.d Configuration
    install -D -m644 "${srcdir}/tmpfiles.d" \
        "${pkgdir}/usr/lib/tmpfiles.d/maraschino.conf"
}