summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83ca58e6a6b19037e86114e32ccba1f1c8a1de46 (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
# Maintainer: danieltetraquark
# Contributor: Patrick Wozniak <hello@patwoz.de>

pkgname=classifier-git
pkgver=20200206.r129.09e958b
pkgrel=1
pkgdesc="Organize files in your directory instantly, by classifying them into different folders (git-version)"

arch=("any")
license=("MIT")

source=("${pkgname%-git}::git+https://github.com/bhrigu123/classifier.git#branch=master")
depends=("python" "python-arrow")
sha256sums=("SKIP")

pkgver() {
  cd "${pkgname%-git}"
  printf "%s.r%s.%s" "$(date +%Y%m%d)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${pkgname%-git}"
  python setup.py install --root="$pkgdir/" --optimize=1
}