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

pkgname=bombadil-git
pkgver=3.0.0.r5.g9b03122
pkgrel=1
arch=('any')
pkgdesc='A dotfile manager with templating'
license=('MIT')
options=('!lto')
makedepends=('git' 'cargo')
provides=('bombadil')
conflict=('bombadil-bin')
url='https://github.com/oknozor/toml-bombadil'
source=("$pkgname"::"git+https://github.com/oknozor/toml-bombadil.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | 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/bombadil" "${pkgdir}/usr/bin/bombadil"

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