blob: d6ba1f65724f522e8d2966001827e21e0530e175 (
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
31
32
|
# Maintainer: Fredy GarcĂa <frealgagu at gmail dot com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=just-git
pkgver=latest
pkgrel=1
pkgdesc="Just a command runner, like make."
arch=("x86_64" "i686")
url="https://github.com/casey/${pkgname%-git}"
license=("custom:WTFPL" "custom:MIT" "APACHE")
depends=("gcc-libs")
makedepends=("cargo")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/casey/${pkgname%-git}.git")
sha256sums=("SKIP")
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | tr -d v
}
build() {
cd "${pkgname%-git}"
cargo build --release
}
package() {
cd "${pkgname%-git}"
install -Dm755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|