alpine-git/PKGBUILD

49 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2017-01-30 18:36:14 -08:00
# Maintainer: Yardena Cohen <yardenack at gmail dot com>
2019-10-22 17:52:56 -07:00
_pkgname=alpine
pkgname=$_pkgname-git
pkgver=2.21.99999.373.fe5ffaf
2017-01-30 18:36:14 -08:00
pkgrel=1
pkgdesc="Fork of the PINE mail client (git)"
arch=('i686' 'x86_64')
2019-06-21 14:07:28 -07:00
url='http://alpine.x10host.com/'
2017-01-30 18:36:14 -08:00
license=('APACHE')
2019-10-22 17:52:56 -07:00
depends=('gettext' 'krb5' 'libldap' 'pam')
2017-01-30 18:36:14 -08:00
makedepends=('git')
provides=('alpine' 'pine' 're-alpine')
conflicts=('alpine' 'pine' 're-alpine')
replaces=('alpine' 'pine' 're-alpine')
2019-10-22 17:52:56 -07:00
source=("git+http://repo.or.cz/${_pkgname}.git")
2017-01-30 18:36:14 -08:00
sha512sums=('SKIP')
pkgver() {
2019-10-22 17:52:56 -07:00
cd "${srcdir}/${_pkgname}"
2019-10-22 17:52:56 -07:00
# we recently went
# from 2.21.204.5117359
# to 2.21.1.209.a9d7a00
# which rightfully confused pacman's version ordering
# so let's add a .0 to versions with only one dot
_ver=$(cat VERSION)
[[ "$_ver" =~ ^[^\.]+\.[^\.]+\..*$ ]] || _ver=$_ver.0
2019-10-22 17:52:56 -07:00
_ver="${_ver}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
printf "%s" "${_ver//-/.}"
2017-01-30 18:36:14 -08:00
}
build() {
2019-10-22 17:52:56 -07:00
cd "${srcdir}/${_pkgname}"
LIBS="-lpam -lkrb5 -lcrypto -lssl -ltcl" \
./configure \
--prefix=/usr \
--with-passfile=.pine-passfile \
--with-system-pinerc=/etc/${pkgname}.d/pine.conf \
--without-tcl \
--disable-shared \
--with-system-fixed-pinerc=/etc/${pkgname}.d/pine.conf.fixed
2019-10-22 17:52:56 -07:00
make
2017-01-30 18:36:14 -08:00
}
package() {
2019-10-22 17:52:56 -07:00
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
2017-01-30 18:36:14 -08:00
}