Compare commits
2 commits
8c83b3dbc0
...
023aab34d9
Author | SHA1 | Date | |
---|---|---|---|
023aab34d9 | |||
9d5703d7ab |
2 changed files with 49 additions and 0 deletions
|
@ -121,6 +121,12 @@ exclude_regex = "^.*(alpha|beta|rc).*$"
|
|||
|
||||
# github
|
||||
|
||||
[hck]
|
||||
source = "github"
|
||||
github = "sstadick/hck"
|
||||
use_max_tag = true
|
||||
prefix = "v"
|
||||
|
||||
[spiped]
|
||||
source = "github"
|
||||
github = "Tarsnap/spiped"
|
||||
|
|
43
hck/PKGBUILD
Normal file
43
hck/PKGBUILD
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||
# Contributor: aulonsal <aulonsal at gmail dot com>
|
||||
|
||||
pkgname=hck
|
||||
pkgver=0.7.1
|
||||
pkgrel=1
|
||||
pkgdesc='A sharp cut(1) clone'
|
||||
arch=('x86_64')
|
||||
url="https://github.com/sstadick/hck"
|
||||
license=('Unlicense' 'MIT')
|
||||
depends=('gcc-libs')
|
||||
makedepends=('git' 'rust' 'cmake')
|
||||
options=('!lto')
|
||||
_commit='aa6988c51c372074222e056e8f7fc8b332272b4e'
|
||||
source=("$pkgname::git+$url.git#commit=$_commit")
|
||||
md5sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
|
||||
# download dependencies
|
||||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
cargo build --release --frozen
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$pkgname"
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
|
||||
install -vDm755 -t "$pkgdir/usr/bin" target/release/hck
|
||||
|
||||
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-MIT UNLICENSE
|
||||
|
||||
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
|
||||
}
|
Loading…
Reference in a new issue