Skip to content

Instantly share code, notes, and snippets.

@momeni
Created September 7, 2013 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save momeni/6475640 to your computer and use it in GitHub Desktop.
Save momeni/6475640 to your computer and use it in GitHub Desktop.
The PKGBUILD for jcal-git package
# 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