summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3e98c168d2b3c7ead23a3d87f22a8ccef60ff7f (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
39
40
# See http://wiki.archlinux.org/index.php/Python_Package_Guidelines for more
# information on Python packaging.

# Maintainer: Nekmo <contacto@nekmo.com>
_pkgname="amazon-dash"
pkgname="${_pkgname}-git"
source=("$_pkgname::git+https://github.com/Nekmo/amazon-dash.git")
pkgver=v1.0.0.r0.g01a1396
pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc="Hack your Amazon Dash to run what you want."
arch=("any")
url="https://github.com/Nekmo/amazon-dash"
license=('MIT')
groups=()
depends=('scapy3k' 'python-yaml' 'python-jsonschema' 'python-requests' 'python-click' 'python-click-default-group')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=amazon-dash.install
md5sums=("SKIP")
#source=()
#md5sums=()

build() {
    cd "${srcdir}/${_pkgname}"
    python setup.py build
}

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