Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUR package #7

Open
Trollwut opened this issue May 26, 2020 · 3 comments · May be fixed by #20
Open

AUR package #7

Trollwut opened this issue May 26, 2020 · 3 comments · May be fixed by #20

Comments

@Trollwut
Copy link

Hey folks!

I like this package. It can be pretty useful sometimes. Are there any plans on creating an AUR package?

@jez
Copy link
Owner

jez commented May 26, 2020

Hey, I don’t use Arch and I’ve never packaged anything for AUR. If you create a package I’d be happy to mention it in the README.

@donbex
Copy link

donbex commented Oct 25, 2020

@Trollwut You can use the PKGBUILD below. I don't want to maintain an AUR package, however, because I'm not using as-tree since tree satisfies my needs (see #11).

# 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')
#checkdepends=()
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jez/${pkgname}/archive/${pkgver}.tar.gz")
md5sums=('77cf5584fced10b16c53ccb4c25224f7')

prepare() {
  cd "$pkgname-$pkgver"
  # Update the lock file. Shouldn't be needed with releases after v0.12.0.
  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"
}

@sharkdp
Copy link

sharkdp commented Jul 5, 2021

as-tree is available on the AUR (https://aur.archlinux.org/packages/as-tree/), so I think this ticket can be closed.

sharkdp added a commit to sharkdp/as-tree that referenced this issue Jul 5, 2021
@sharkdp sharkdp linked a pull request Jul 5, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants