summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f85956edefb14160383f98b625d4f8c37dd48712 (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
41
42
43
44
45
46
# Maintainer: 1Conan <me@1conan.com>
pkgname=opendrop-git
pkgver=0.0.0.r12.bf6d47f
pkgrel=1
pkgdesc="OpenDrop: an Open Source AirDrop Implementation"
arch=('any')
url="https://github.com/seemoo-lab/opendrop"
license=('GPL3')
makedepends=(
  'git'
)
depends=(
  'owlink-git'
  'python'
  'python-libarchive-c'
  'python-requests-toolbelt'
  'python-pillow'
  'python-netifaces'
  'python-requests'
  'python-ifaddr'
  'python-zeroconf'

  'python-ctypescrypto-git'
  'python-fleep-git'
)
source=("$pkgname::git+https://github.com/seemoo-lab/opendrop#branch=master")
sha512sums=("SKIP")

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "0.0.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}


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

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