summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81839d952b49853b17bcc1f600dd32ff28d8f041 (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=pre.alpha.0.3.2.r5.gcd761b3
pkgrel=2
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
}