summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7dc6750478a657df8d23d0232f0969e26a1a13aa (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
# Maintainer: A Farzat <a@farzat.xyz>
pkgname=python-anchor-kr-git
pkgver=6.4cedb6a
pkgrel=1
pkgdesc="This project is created in the favor of scraping projects of KR."
arch=('any')
url="https://github.com/justfoolingaround/anchor"
license=('custom')
depends=('python')
makedepends=('git')
_gitname='anchor'
source=("git+https://github.com/justfoolingaround/$_gitname")
md5sums=(SKIP)
provides=(python-anchor-kr)


pkgver() {
  cd "${_gitname}"
  echo "$(git rev-list --count HEAD)"."$(git rev-parse --short HEAD)"
}

build() {
  cd "${_gitname}"
  python setup.py build
}

package() {
  cd "${_gitname}"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}