summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ae239c0ac46f5f66de8a07e022577d4c6178f7a (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
# Maintainer: Aditya Gupta <ag15035 at gmail dot com>
pkgname=graphmat-git
pkgver=r26.62e8a20
pkgrel=1
pkgdesc="A matrix header-only library, uses graphs internally"
arch=(x86_64)
url="https://github.com/adi-g15/graphMat"
license=('MIT')
depends=()
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(${pkgname%-git}::'git+https://github.com/adi-g15/graphMat')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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