summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94b11f222159580aeccbe7e70af3f0838bbda627 (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
# Maintainer: Theo Henson <theodorehenson@protonmail.com>
pkgname=rco
pkgver=0.1.5
pkgrel=1
pkgdesc="A configuration manager written in rust."
arch=('any')
url="https://github.com/tteeoo/rco"
license=('MIT')
depends=(
  'gcc-libs'
  'sudo'
)
makedepends=(
  'cargo'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tteeoo/rco/archive/${pkgver}.tar.gz")
md5sums=('9d3eeb1f6b039b7bb5eed1c313698356')

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

package() {
    mkdir $pkgdir/usr/bin/ -p
    mkdir $pkgdir/usr/share/licenses/rco/ -p
    cp $srcdir/$pkgname-$pkgver/LICENSE-MIT $pkgdir/usr/share/licenses/rco/MIT-LICENSE.txt
    cp $srcdir/$pkgname-$pkgver/target/release/rco $pkgdir/usr/bin/
}