-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
pkgbase = tag | ||
pkgdesc = Search for local text files with a simple tagging system. | ||
pkgver = 0.2.0 | ||
pkgrel = 1 | ||
url = https://github.com/miampf/tag | ||
arch = x86_64 | ||
license = MIT | ||
makedepends = cargo | ||
provides = tag | ||
source = tag-0.2.0.tar.gz::https://static.crates.io/crates/tag/tag-0.2.0.crate | ||
sha1sums = SKIP | ||
|
||
pkgname = tag |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
pkgname=tag | ||
pkgver=0.2.0 | ||
pkgrel=1 | ||
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") | ||
pkgdesc="Search for local text files with a simple tagging system." | ||
arch=('x86_64') | ||
url='https://github.com/miampf/tag' | ||
license=('MIT') | ||
provides=('tag') | ||
makedepends=(cargo) | ||
sha1sums=('SKIP') | ||
|
||
prepare() { | ||
cd $pkgname-$pkgver | ||
export RUSTUP_TOOLCHAIN=stable | ||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" | ||
} | ||
|
||
build() { | ||
cd $pkgname-$pkgver | ||
export RUSTUP_TOOLCHAIN=stable | ||
export CARGO_TARGET_DIR=target | ||
cargo build --frozen --release --all-features --target "$(rustc -vV | sed -n 's/host: //p')" | ||
} | ||
|
||
|
||
check() { | ||
cd $pkgname-$pkgver | ||
export RUSTUP_TOOLCHAIN=stable | ||
cargo test --frozen --all-features --target "$(rustc -vV | sed -n 's/host: //p')" | ||
} | ||
|
||
package() { | ||
cd $pkgname-$pkgver | ||
install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc -vV | sed -n 's/host: //p')/release/$pkgname" | ||
} |