summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25a4f474de5f909ec275b6b34c5d19c5978147b8 (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
# Maintainer:  Keating Reid <keating.reid@protonmail.com>
pkgname=libmowgli-2-git
pkgver=v2.1.3.r42.g8be3be8
pkgrel=1
pkgdesc="A class library containing performance and usability oriented extensions to C."
arch=('i686' 'x86_64')
url="https://github.com/atheme/libmowgli-2"
license=('ISC')
depends=('openssl')
makedepends=('git')
provides=('libmowgli=2.1.3')
conflicts=("libmowgli")
source=("${pkgname}::git+https://github.com/atheme/libmowgli-2.git")
sha1sums=('SKIP')

pkgver() {
	cd $pkgname
	# git rev-parse --short HEAD
	# cutting off 'foo-' prefix that presents in the git tag
  	git describe --long | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
	cd "${srcdir}/${pkgname}"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${pkgname}"
	make DESTDIR="${pkgdir}" install
	install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}