summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ccb9b6d05a1e6140699503d3c081eba957f39e00 (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: Maxim Baz <$pkgname at maximbaz dot com>
pkgname=stow-cm
pkgver=nightly
pkgrel=2
pkgdesc="config manager (simple impl of gun-stow)"
arch=('x86_64')
url="https://github.com/someoneonsmile/stow"
license=('GPL3')
depends=('gcc-libs')
makedepends=('cargo')
conflicts=('stow')
source=("stow-$pkgver.tar.gz::https://github.com/someoneonsmile/stow/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('SKIP')

build() {
  cd "stow-$pkgver"
  cargo build --release --target x86_64-unknown-linux-musl
}

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