summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9b6b205cc10c26ec56df41ae0eedccb8eedd6ad (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
# Maintainer: Simon Ser
pkgname=python-emailthreads-git
_pkgname=python-emailthreads
pkgver=0.1.3.r0.g99f1a04fa0dd
pkgrel=1
pkgdesc='Python library to parse and format email threads'
arch=(any)
url=https://github.com/emersion/$_pkgname
license=('MIT')
makedepends=(python-setuptools git)
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git+https://github.com/emersion/$_pkgname)
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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