diff options
author | Luis Martinez | 2021-03-10 02:53:08 -0600 |
---|---|---|
committer | Luis Martinez | 2021-03-10 02:53:08 -0600 |
commit | a1e26779d20e9c1163fdf6933ede80729302e995 (patch) | |
tree | c28a44c5898171054beef7046aa9ef25d87b980a | |
download | aur-a1e26779d20e9c1163fdf6933ede80729302e995.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..593d3de3770f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = as-tree + pkgdesc = Print a list of paths as a tree of paths + pkgver = 0.12.0 + pkgrel = 1 + url = https://github.com/jez/as-tree + arch = x86_64 + license = custom:BOML + makedepends = cargo + depends = gcc-libs + source = as-tree-0.12.0.tar.gz::https://github.com/jez/as-tree/archive/0.12.0.tar.gz + sha256sums = 2af03a2b200041ac5c7a20aa1cea0dcc21fb83ac9fe9a1cd63cb02adab299456 + +pkgname = as-tree + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b9b9364ad10e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: lmartinez-mirror +# Contributor: donbex <ap dot m at runbox dot com> +pkgname=as-tree +pkgver=0.12.0 +pkgrel=1 +pkgdesc="Print a list of paths as a tree of paths" +arch=('x86_64') +url="https://github.com/jez/as-tree" +license=('custom:BOML') +depends=('gcc-libs') +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('2af03a2b200041ac5c7a20aa1cea0dcc21fb83ac9fe9a1cd63cb02adab299456') + +prepare() { + cd "$pkgname-$pkgver" + # Update the lock file manually, will not build with --locked flag otherwise + sed -i "s/version = \"0.11.1\"/version = \"$pkgver\"/" Cargo.lock +} + +build() { + cd "$pkgname-$pkgver" + cargo build --release --locked --all-features --target-dir=target +} + +package() { + cd "$pkgname-$pkgver" + install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin" + install -Dm 644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +} |