summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 282c5e294d920a250db5f9a78f6d3fa5dbec75f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
pkgname=commons-category-downloader
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=(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
}