summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69fac9a766214bb7f009ed46d37ddc49d33fb7c8 (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
# Maintainer: Dario Ostuni <dario.ostuni@gmail.com>

_pkgname=dazzle
pkgname=${_pkgname}-git
pkgver=r32.8b5a4fa
pkgrel=1
pkgdesc="An AI playground (git version)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/dariost/dazzle"
license=('MPL2')
depends=()
makedepends=('cargo')
provides=('dazzle')
backup=('etc/dazzled.json')
options=()
source=("git+https://github.com/dariost/dazzle.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_pkgname"
    cargo build --release
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm755 target/release/dazzle "$pkgdir/usr/bin/dazzle"
    install -Dm755 target/release/dazzled "$pkgdir/usr/bin/dazzled"
    install -Dm644 contrib/dazzled.json "$pkgdir/etc/dazzled.json"
}