summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afc930e25ab755644f555db06a09c633ebca70fe (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
# Maintainer: FzerorubigD <Fzerorubigd {AT} GMail {DOT} com>
 
pkgname='jcal-git'
 
_gitname=jcal
#The real value will be calculated by pkgver() function
pkgver=69.162c703
pkgrel=1
 
pkgdesc="Jalali calendar is a small and portable free software library to manipulate date and time in Jalali calendar system"
url="http://www.nongnu.org/jcal/"
 
arch=('any')
license=('GPL3')
provides=('jcal') 
depends=()
makedepends=('git')
source=('git://github.com/ashkang/jcal.git')
md5sums=('SKIP')
 
 
pkgver() {
	cd "${srcdir}/${_gitname}"
	echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
 
build() {
	cd "${srcdir}/${_gitname}/sources"
	./autogen.sh
	./configure --prefix=/usr
make
}
 
package() {
	cd "${srcdir}/${_gitname}/sources"
	make DESTDIR=$pkgdir install
}