summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 808fd5548649f4ea78243e30c62e02321cebac0e (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
# Maintainer: Dennis Hamester <dennis.hamester@startmail.com>

_pkgname=dotrix
pkgname=$_pkgname-git
pkgver=0.1.1.r0.gdd5540f
pkgrel=1
pkgdesc="The pedantic dotfiles manager"
arch=(i686 x86_64)
url="https://gitlab.com/dennis-hamester/dotrix"
license=('custom:ISC')
makedepends=('rust' 'cargo')
source=("git+https://gitlab.com/dennis-hamester/dotrix.git")
sha256sums=('SKIP')

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

build() {
  cd $_pkgname
  cargo build --release
}

package() {
  install -Dm755 "$srcdir"/$_pkgname/target/release/$_pkgname "$pkgdir"/usr/bin/$_pkgname
  install -Dm644 "$srcdir"/$_pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}