summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcev2018-09-01 16:39:38 -0400
committercev2018-09-01 16:39:38 -0400
commit3691140f1db4e861c36127af1c9c532dbb91168c (patch)
treec5f5056c5e409b3f8e7e745f6f1b25832e56e6db
downloadaur-scratch-purge.tar.gz
Initial commit. v0.1
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..df07f064b67
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = scratch-purge
+ pkgdesc = Simple tool to purge a folder used as scratch.
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://gitlab.com/vejnar/scratch-purge
+ arch = i686
+ arch = x86_64
+ license = MPLv2
+ makedepends = go
+ source = https://gitlab.com/vejnar/scratch-purge/-/archive/v0.1/scratch-purge-v0.1.tar.gz
+ sha1sums = 63b1a272c10368b7fc84468a2a749655ff152279
+
+pkgname = scratch-purge
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fc27c335207
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Charles Vejnar
+
+pkgname=scratch-purge
+pkgver=0.1
+pkgrel=1
+pkgdesc="Simple tool to purge a folder used as scratch."
+arch=("i686" "x86_64")
+url="https://gitlab.com/vejnar/scratch-purge"
+license=("MPLv2")
+makedepends=("go")
+source=("https://gitlab.com/vejnar/scratch-purge/-/archive/v0.1/scratch-purge-v$pkgver.tar.gz")
+sha1sums=("63b1a272c10368b7fc84468a2a749655ff152279")
+
+prepare() {
+ export GOPATH="${srcdir}"
+ cd "${srcdir}"
+ go get -d github.com/syndtr/goleveldb/leveldb
+}
+
+build() {
+ export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin"
+ cd "$srcdir/$pkgname-v$pkgver/src"
+ go build *.go
+}
+
+package() {
+ cd "$srcdir/$pkgname-v$pkgver/src"
+ install -Dm755 scratch_purge "$pkgdir/usr/bin/scratch_purge"
+}