diff options
author | Milk Brewster | 2020-08-03 17:16:46 +0100 |
---|---|---|
committer | Milk Brewster | 2020-08-03 17:16:46 +0100 |
commit | 8df368c6384906be44d62fa136ee8e04916c13b9 (patch) | |
tree | b1eccbb2b0af98d802f0e2461cf7bae7fe3aeb4c | |
download | aur-8df368c6384906be44d62fa136ee8e04916c13b9.tar.gz |
mv from commons-category-downloader
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5104397aff4b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = commons-category-downloader-git + pkgdesc = Quick and dirty shell script to fetch all images from a category on Wikimedia Commons + pkgver = r7.a3864da + pkgrel = 1 + url = https://github.com/aucuparia/commons-category-downloader + arch = x86_64 + license = GPL + depends = git + depends = jq + source = git+https://github.com/aucuparia/commons-category-downloader + md5sums = SKIP + +pkgname = commons-category-downloader-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ca634653a7a2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Milkii Brewster <milkii on Freenode IRC> +pkgname=commons-category-downloader-git +pkgdesc="Quick and dirty shell script to fetch all images from a category on Wikimedia Commons" +pkgver=r7.a3864da +pkgrel=1 +epoch= +arch=(x86_64) +url="https://github.com/aucuparia/commons-category-downloader" +license=(GPL) +groups=() +depends=('git' 'jq') +makedepends=() +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=(git+https://github.com/aucuparia/commons-category-downloader) +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "$pkgname" + mkdir -p "$pkgdir"/usr/bin + mv commons_category_downloader.sh "$pkgdir"/usr/bin +} |