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 | |
| download | packages-e472f310ce22e6726391142d4b9a53705853452a.tar.gz packages-e472f310ce22e6726391142d4b9a53705853452a.tar.bz2 packages-e472f310ce22e6726391142d4b9a53705853452a.zip | |
Initial commit, 0.3.1
| -rw-r--r-- | .SRCINFO | 12 | ||||
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | PKGBUILD | 29 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4aea0eb --- /dev/null +++ b/.SRCINFO | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | pkgbase = ouch | ||
| 2 | pkgdesc = Painless compression and decompression in the terminal | ||
| 3 | pkgver = 0.3.1 | ||
| 4 | pkgrel = 1 | ||
| 5 | url = https://github.com/ouch-org/ouch | ||
| 6 | arch = x86_64 | ||
| 7 | license = MIT | ||
| 8 | makedepends = cargo | ||
| 9 | source = ouch-0.3.1.tar.gz::https://github.com/ouch-org/ouch/archive/0.3.1.tar.gz | ||
| 10 | sha256sums = 269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d | ||
| 11 | |||
| 12 | pkgname = ouch | ||
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d65adf --- /dev/null +++ b/.gitignore | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | * | ||
| 2 | !PKGBUILD | ||
| 3 | !.SRCINFO | ||
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 | } | ||
