summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c07f2c3d32031c02e6b2472b1861ce826cdb93d (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
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
pkgname=stow-cm
pkgver=nightly
pkgrel=1
pkgdesc="config manager (simple impl of gun-stow)"
arch=('x86_64')
url="https://github.com/someoneonsmile/stow"
license=('GPL2')
depends=('gcc-libs')
makedepends=('cargo')
conflicts=('stow')
source=("${pkgname}::git+https://github.com/someoneonsmile/stow.git")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname}"
    printf "nightly-%s.%s" "$(git rev-list --count nightly)" "$(git rev-parse --short nightly)"
}

build() {
  cd "stow-$pkgver"
  cargo build --release
}

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