summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a68a6685608fa9f3ca466e0e8ca7ddb3e3e8c48 (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: jlaunay
pkgname=ical2orgpy-git
_appname=ical2orgpy
_gitname=ical2org.py
pkgver=0.3.r38.gb2224f4
pkgrel=1
pkgdesc='This script converts an ical calendar (for instance, as exported from google calendar) into an org-mode document.'
url='https://github.com/ical2org-py/ical2org.py.git'
arch=('any')
license=('GPL3')
depends=('python-tzlocal' 'python-pytz' 'python-icalendar' 'python-recurring-ical-events' 'python-future' 'python-click')
source=("git+${url}")
makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
md5sums=('SKIP')

build() {
    cd ${srcdir}/${_gitname}
    python -m build --wheel --no-isolation
}

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

package() {
  cd ${srcdir}/${_gitname}
  python -m installer --destdir="$pkgdir" dist/*.whl
}