Created
September 7, 2013 13:39
-
-
Save momeni/6475640 to your computer and use it in GitHub Desktop.
The PKGBUILD for jcal-git package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: FzerorubigD <Fzerorubigd {AT} GMail {DOT} com> | |
pkgname=('jcal-git') | |
_gitname=jcal | |
#The real value will be calculated by pkgver() function | |
pkgver=29.30cb735 | |
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') | |
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 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment