summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9f63d4e8717a8e09d489f05855bbe241186f1ff (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
# Maintainer: Luca Fulgenzi <luca.fugenzi@justanother.cloud>
#
# This PKGBUILD was generated by `cargo aur`: https://crates.io/crates/cargo-aur

pkgname=domust-bin
pkgver=0.1.2
pkgrel=1
pkgdesc="Domust is a home automation system that allows you to control your home form your computer."
url="https://github.com/lucafulgenzi/domust"
license=("AGPL-3.0")
arch=("x86_64")
provides=("domust")
conflicts=("domust")
source=("https://github.com/lucafulgenzi/domust/releases/download/${pkgver}/domust-x86_64-unknown-linux-gnu.tar.gz")
sha256sums=("SKIP")

package() {
    install -Dm755 domust -t "$pkgdir/usr/bin"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname}/README.md"

    mkdir -p $pkgdir/$HOME/.config/domust
    [[ -f $HOME/.config/domust/config.yaml ]] || touch $HOME/.config/domust/config.yaml
}