diff options
author | LevitatingBusinessMan (Rein Fernhout) | 2022-11-25 02:58:04 +0100 |
---|---|---|
committer | LevitatingBusinessMan (Rein Fernhout) | 2022-11-26 17:34:33 +0100 |
commit | 263b2bc646700ea7bf96596937e8ccafc154026a (patch) | |
tree | d86eb19bd51072d138e5326707eff4029121d66b | |
download | aur-263b2bc646700ea7bf96596937e8ccafc154026a.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..11c75d351795 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = reddit-fs + pkgdesc = Reddit as a filesystem + pkgver = r35.18ab93a + pkgrel = 1 + url = https://github.com/LevitatingBusinessMan/reddit-fs + arch = x86_64 + license = MIT + makedepends = cargo + source = git+https://github.com/LevitatingBusinessMan/reddit-fs.git + sha256sums = SKIP + +pkgname = reddit-fs diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c6eb4bfd92db --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +#Maintainer: Rein Fernhout (LevitatingBusinessMan) <me@levitati.ng> + +pkgname=reddit-fs +pkgver=r35.18ab93a +arch=("x86_64") +pkgrel=1 +pkgdesc="Reddit as a filesystem" +license=("MIT") +makedepends=("cargo") +url="https://github.com/LevitatingBusinessMan/$pkgname" +source=("git+https://github.com/LevitatingBusinessMan/$pkgname.git") +sha256sums=("SKIP") + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + cargo build --release +} + +package() { + cd "${srcdir}/${pkgname}" + + install -Dm755 target/release/reddit-fs $pkgdir/usr/bin/reddit-fs +} |