From 4ad7db87a56eb065988d6120a1690723c4a60ccc Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Mon, 31 Oct 2022 14:32:27 +0100 Subject: Garbage: yet another broken package on the AUR. new file: garbage/.SRCINFO new file: garbage/PKGBUILD --- garbage/PKGBUILD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 garbage/PKGBUILD (limited to 'garbage/PKGBUILD') diff --git a/garbage/PKGBUILD b/garbage/PKGBUILD new file mode 100644 index 0000000..4bacb44 --- /dev/null +++ b/garbage/PKGBUILD @@ -0,0 +1,20 @@ +pkgname=garbage +pkgver=0.4.0 +pkgrel=1 +pkgdesc='Command-line interface to the FreeDesktop Trash can' +url='https://git.sr.ht/~mzhang/garbage' +arch=('x86_64') +license=('GPL3') +makedepends=('rust') +source=("https://git.sr.ht/~mzhang/${pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('c98e2769d88f1a85fbcbf4b08a2972acdf29079344ef9323aeace0788be635c9') + +build() { + cd "${pkgname}-v${pkgver}" + cargo build --release --locked --all-features --target-dir=target +} + +package() { + cd "${pkgname}-v${pkgver}" + install -Dm 755 target/release/${pkgname} -t ${pkgdir}/usr/bin +} -- cgit v1.2.3-70-g09d2