summaryrefslogtreecommitdiff
path: root/garbage/PKGBUILD
blob: 4bacb4443220afc1b52b0ec8f0bbfe72c4ed44ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}