summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a67ccc49d4e9af1521cf567a15742b34d9a82e7 (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
# Maintainer: aereaux <aidan@jmad.org>
_pkgname=meli
pkgname=${_pkgname}-git
pkgver=alpha.0.4.2.r43.g17a0f31
pkgrel=1
pkgdesc="Experimental terminal mail client aiming for configurability and extensibility with sane defaults."
arch=("x86_64")
url="https://meli.delivery/"
license=('GPL3')
depends=()
makedepends=("git" "rust")
optdepends=()
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://git.meli.delivery/meli/meli.git")
md5sums=("SKIP")

pkgver() {
  cd "$_pkgname"

  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"

  make
}

# TODO: Right now the makefile does not have a check target
#check() {
#  cd "$_pkgname"
#
#  cargo test --release --locked
#}

package() {
  cd "$_pkgname"

  make PREFIX=/usr DESTDIR="$pkgdir/" install
}