summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd1cc617d695a6028ed44a716d234e2d0690d857 (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
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
pkgname=wikimedia-midi-files
pkgdesc="All MIDI files in the Wikimedia Commons collection."
pkgver=0.1.20200327
pkgrel=2
epoch=
arch=(any)
url="https://commons.wikimedia.org/wiki/Category:MIDI_files"
license=(FDL)
groups=(midi-files)
depends=(jq)
makedepends=('git' 'wget')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
source=("git+https://github.com/aucuparia/commons-category-downloader")
md5sums=('SKIP')

build() {
  cd commons-category-downloader
  ./commons_category_downloader.sh "MIDI files"
}

package() {
  mkdir -p "$pkgdir"/usr/share/midi/wikimedia-midi-files
  cp commons-category-downloader/*.mid "$pkgdir"/usr/share/midi/wikimedia-midi-files/
}