summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Grunbaum2020-12-05 23:37:15 +1100
committerJoel Grunbaum2020-12-05 23:37:15 +1100
commitd169c62003702f560007b152c762dc6d28fe9f16 (patch)
treee91aaf481a8c55caf63e0dd32ed8c1221e1f06bf
downloadaur-reddit-wallpaper-fetcher-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD24
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..63b7d0a3f7e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = reddit-wallpaper-fetcher-git
+ pkgdesc = Automatically fetch images from reddit for a wallpaper
+ pkgver = r8.99c36a7
+ pkgrel = 1
+ url = https://github.com/Chizi123/reddit-wallpaper-fetcher
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = jq
+ depends = curl
+ depends = imagemagick
+ source = git+https://github.com/Chizi123/reddit-wallpaper-fetcher.git
+ md5sums = SKIP
+
+pkgname = reddit-wallpaper-fetcher-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c6e8daf6bfd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef6f072291f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Joel Grunbaum <joelgrun@gmail.com
+_pkgname=reddit-wallpaper-fetcher
+pkgname=$_pkgname-git
+pkgver=r8.99c36a7
+pkgrel=1
+pkgdesc="Automatically fetch images from reddit for a wallpaper"
+arch=("x86_64")
+url="https://github.com/Chizi123/reddit-wallpaper-fetcher"
+license=('MIT')
+depends=("jq" "curl" "imagemagick")
+makedepends=('git')
+source=('git+https://github.com/Chizi123/reddit-wallpaper-fetcher.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/${_pkgname}"
+ install -Dm755 reddit-wallpaper-fetcher "$pkgdir/usr/bin/reddit-wallpaper-fetcher"
+ install -Dm644 reddit-wallpaper-fetcher.conf "$pkgdir/usr/share/reddit-wallpaper-fetcher.conf"
+}