summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c810ae2a5fd985eb86e3435a2e3c4a135b6e4255 (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
47
48
49
50
51
52
53
54
55
56
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=dodo-mail-git
_pkgname="${pkgname%-git}"
pkgver=r223.ed02090
pkgrel=1
pkgdesc='A graphical, hackable email client based on notmuch'
arch=('any')
url="https://github.com/akissinger/dodo"
license=('GPL3')
groups=()
depends=(
	'python'
	'python-bleach'
	'python-pyqt6'
	'python-pyqt6-webengine'
	'hicolor-icon-theme'
	'notmuch'
	'w3m'
)
makedepends=(
	'git'
	'python-setuptools'
)
optdepends=(
	'offlineimap: check mail and sync with a local maildir'
	'msmtp: a sendmail-compatible SMTP client to send mail'
	'python-gnupg: pgp/mime support'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
backup=()
options=()
install="$_pkgname.install"
source=("$_pkgname::git+$url")
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	# Git, tags available
	# printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
	# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


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

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