blob: 919eb1775a9c9f5a0bb41218e65c63ea915ec88b (
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
|
pkgname=rust-cowsay
pkgver=0.1.4
pkgrel=1
pkgdesc="Cowsay rewritten in Rust."
url="https://github.com/ThisNekoGuy/rust-cowsay"
license=("MIT")
arch=("any")
depends=("gcc-libs")
makedepends=("cargo" "git")
provides=("cowsay")
conflicts=("cowsay" "cowsay-bin" "rust-cowsay-git" "cowsay-git")
source=("git+https://github.com/ThisNekoGuy/rust-cowsay")
sha256sums=("SKIP")
prepare() {
cd "${srcdir}/rust-cowsay"
git checkout v${pkgver}
}
build() {
cd "${srcdir}/rust-cowsay"
cargo build --release
}
package() {
install -Dm755 "${srcdir}/rust-cowsay/target/release/cowsay" -t "${pkgdir}/usr/bin"
install -Dm644 "${srcdir}/rust-cowsay/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|