summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6319d0f7b637a99705175ad76172ca4f1dd547a6 (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
# Maintainer: Arne Beer <arne@twobeer.de>

_gitname=encarne
pkgname=${_gitname}-git
pkgver='r67.191ea13'
pkgrel=1
arch=('any')
pkgdesc='A command scheduler for shells'
license=('MIT')
depends=('mediainfo' 'pueue' 'python-lxml' 'python-sqlalchemy' 'python-sqlalchemy-utils' 'python-humanfriendly')
makedepends=('git' 'python-setuptools')
provides=('encarne')
conflicts=('encarne')
url='https://github.com/nukesor/encarne'
source=("git+https://github.com/nukesor/encarne.git")
sha256sums=('SKIP')

package() {
    cd "${_gitname}"

    # We don't need anything related to git in the package
    rm -rf .git*

    # Install
    python setup.py install --optimize=1 --root="${pkgdir}"

    install -dm777 "${pkgdir}/var/lib/encarne"

    # Place systemd user service
    install -Dm644 "utils/${_gitname}.service" "${pkgdir}/usr/lib/systemd/system/${_gitname}.service"
    install -Dm644 "utils/${_gitname}.service" "${pkgdir}/usr/lib/systemd/system/${_gitname}.service"

    # Install License
    # MIT/X11 license
    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}