summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffa3195747f2a832fbb2f79b9ec1d6a444b21741 (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
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: MyMaud <russ@russgibson.org>
# Contributor: skydrome <skydrome@i2pmail.org>
# Contributor: Mike Pento <mpento darkforge net>

pkgname=pan-git
_gitname=pan
pkgver=v0.155.r5.g5c2da7a
pkgrel=1
epoch=1
pkgdesc="Pan is a Usenet newsreader that's good at both text and binaries. Development version."
url="http://pan.rebelbase.com/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gmime3' 'gtkspell3')
makedepends=('git' 'intltool')
conflicts=('pan')
provides=('pan')
source=("git+https://gitlab.gnome.org/GNOME/$_gitname.git")
sha256sums=('SKIP')

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

build() {
    cd "$srcdir/$_gitname"

    ./autogen.sh \
        --prefix=/usr \
        --disable-dependency-tracking \
        --with-gmime-crypto \
        --with-gnutls \
        --with-gtkspell \
        --with-gtk3
    make
}

package() {
    cd "$srcdir/$_gitname"
    make DESTDIR="$pkgdir" install
}