summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeposite Pirate2022-10-31 14:32:27 +0100
committerDeposite Pirate2022-10-31 14:32:27 +0100
commit4ad7db87a56eb065988d6120a1690723c4a60ccc (patch)
treedc386ae67208fa4c9a4fb96a42fd9f3dc7ffad5a
parenta48177162efe0ea79bcf7027c0ad88ae1a51b827 (diff)
Garbage: yet another broken package on the AUR.
new file: garbage/.SRCINFO new file: garbage/PKGBUILD
-rw-r--r--garbage/.SRCINFO12
-rw-r--r--garbage/PKGBUILD20
2 files changed, 32 insertions, 0 deletions
diff --git a/garbage/.SRCINFO b/garbage/.SRCINFO
new file mode 100644
index 0000000..ae219ce
--- /dev/null
+++ b/garbage/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = garbage
+ pkgdesc = Command-line interface to the FreeDesktop Trash can
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = https://git.sr.ht/~mzhang/garbage
+ arch = x86_64
+ license = GPL3
+ makedepends = rust
+ source = https://git.sr.ht/~mzhang/garbage/archive/v0.4.0.tar.gz
+ sha256sums = 1162441f3e9bd5fc86aa6c61f64ad8f7b5b679ab89275afce6fd7b0e99c7f3f7
+
+pkgname = garbage
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
+}