summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fa9ceac8a8cd78c0ff033c5fcda9ef5ff31935e (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>

pkgname=geil-git
pkgver=geil.alpha.0.0.1
pkgrel=1
arch=('any')
pkgdesc='A task manager and scheduler for shell commands'
license=('MIT')
makedepends=('git' 'cargo')
conflicts=()
provides=('geil')
url='https://github.com/nukesor/geil'
source=("$pkgname"::"git://github.com/nukesor/geil.git")
sha256sums=('SKIP')

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

build() {
    cd $pkgname

    # Build the daemon and client
    cargo build --release --locked
}

package() {
    cd $pkgname

    # Install binaries
    install -Dm755 "target/release/geil" "${pkgdir}/usr/bin/geil"

    # Install License
    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/geil/LICENSE"
}