summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2021-11-03 11:14:42 +0300
committerYigit Sever2021-11-03 11:14:42 +0300
commite472f310ce22e6726391142d4b9a53705853452a (patch)
treedc674f41c77f32186bc77707b724a04974fd036c /PKGBUILD
downloadpackages-e472f310ce22e6726391142d4b9a53705853452a.tar.gz
packages-e472f310ce22e6726391142d4b9a53705853452a.tar.bz2
packages-e472f310ce22e6726391142d4b9a53705853452a.zip
Initial commit, 0.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
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
3pkgname=ouch
4pkgver=0.3.1
5pkgrel=1
6pkgdesc="Painless compression and decompression in the terminal"
7arch=('x86_64')
8url="https://github.com/ouch-org/ouch"
9license=('MIT')
10makedepends=('cargo')
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
12sha256sums=('269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d')
13
14prepare() {
15 cd "$pkgname-$pkgver"
16 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
17}
18
19build() {
20 cd "$pkgname-$pkgver"
21 export RUSTUP_TOOLCHAIN=stable
22 export CARGO_TARGET_DIR=target
23 cargo build --frozen --release --all-features
24}
25
26package() {
27 cd "$pkgname-$pkgver"
28 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
29}