diff options
author | Yigit Sever | 2021-11-03 11:14:42 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-03 11:14:42 +0300 |
commit | e472f310ce22e6726391142d4b9a53705853452a (patch) | |
tree | dc674f41c77f32186bc77707b724a04974fd036c /PKGBUILD | |
download | packages-e472f310ce22e6726391142d4b9a53705853452a.tar.gz packages-e472f310ce22e6726391142d4b9a53705853452a.tar.bz2 packages-e472f310ce22e6726391142d4b9a53705853452a.zip |
Initial commit, 0.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6d00377 --- /dev/null +++ b/PKGBUILD | |||
@@ -0,0 +1,29 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | |||
3 | pkgname=ouch | ||
4 | pkgver=0.3.1 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="Painless compression and decompression in the terminal" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/ouch-org/ouch" | ||
9 | license=('MIT') | ||
10 | makedepends=('cargo') | ||
11 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") | ||
12 | sha256sums=('269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d') | ||
13 | |||
14 | prepare() { | ||
15 | cd "$pkgname-$pkgver" | ||
16 | cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | ||
17 | } | ||
18 | |||
19 | build() { | ||
20 | cd "$pkgname-$pkgver" | ||
21 | export RUSTUP_TOOLCHAIN=stable | ||
22 | export CARGO_TARGET_DIR=target | ||
23 | cargo build --frozen --release --all-features | ||
24 | } | ||
25 | |||
26 | package() { | ||
27 | cd "$pkgname-$pkgver" | ||
28 | install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" | ||
29 | } | ||