summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7429c966b2901cdda0d32c231052de54784f54f2 (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
# Maintainer: Kusoneko <kusoneko@kusoneko.moe>

pkgname=libretls-git
pkgver=3.7.0.r70.7f5dbfe
pkgrel=1
pkgdesc="libtls for OpenSSL"
arch=('x86_64')
url="https://git.causal.agency/libretls"
license=('BSD' 'ISC' 'MIT')
makedepends=('git')
depends=('openssl')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://git.causal.agency/${pkgname%-git}.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    printf "%s.r%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	autoreconf -fi
	./configure --prefix=/usr --mandir=/usr/share/man
	make all
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}