blob: fdf5d9412aab8d9fddd6e82431ec679b7746466a (
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: Moritz Poldrack <moritz@poldrack.dev>
# Contributor: Gökberk Yaltıraklı <aur at gkbrk dot com>
# Contributor: Stefan Tatschner <stefan@rumpelsepp.org>
# Contributor: Drew DeVault <sir@cmpwn.com>
pkgname=(aerc-no-notmuch-git)
_pkgname=aerc
pkgver=0.15.2.r131.ga5d6a70
pkgrel=1
pkgdesc='Email Client for your Terminal (compiled without notmuch support)'
arch=('x86_64')
url='https://aerc-mail.org/'
license=('MIT')
depends=()
makedepends=('go' 'git' 'scdoc')
optdepends=('w3m: html viewer support' 'dante: proxy support')
provides=('aerc')
conflicts=('aerc')
source=("${_pkgname}::git+https://git.sr.ht/~rjarry/${_pkgname}")
sha512sums=('SKIP')
options=('!buildflags')
pkgver () {
cd "${srcdir}/${_pkgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build () {
cd "${srcdir}/${_pkgname}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
make PREFIX=/usr LIBEXECDIR=/usr/lib/aerc VERSION="${pkgver}" "DESTDIR=$pkgdir" all
}
package () {
cd "${srcdir}/${_pkgname}"
make PREFIX=/usr LIBEXECDIR=/usr/lib/aerc "DESTDIR=$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/aerc/"
}
|