blob: 28f7f75038867ba331063ac4c0d6408c327a4f5e (
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: ghesy <ehsan at disroot dot org>
pkgname='git-workspace'
pkgver=1.4.0
pkgrel=1
pkgdesc='Sync personal and work git repositories from multiple providers'
url='https://github.com/orf/git-workspace'
arch=('x86_64')
license=('MIT')
depends=('git')
makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('fb66b03f4068950ba2fac73b445a964b2b941137f9b31f5db9f4fba1a73d3d4d')
options=('!lto')
_target_dir='target'
build() {
cd "${pkgname}-${pkgver}"
cargo build --release --locked --target-dir "$_target_dir"
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 "${_target_dir}/release/${pkgname}" -t "${pkgdir}/usr/bin/"
install -dm755 "${pkgdir}/usr/lib/git-core/"
ln -s "/usr/bin/${pkgname}" "${pkgdir}/usr/lib/git-core/"
}
|