summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorL.G. Sarmiento2016-08-02 16:09:36 +0200
committerL.G. Sarmiento2016-08-02 16:09:36 +0200
commit98bbf25e862bf1b30fe010c99f16f499669f1a3b (patch)
tree7e2024f43203a460952df9a6b73d2d528c46102c
parent47954ab094b1a84d4d733350a1e3d9cbaf6b4703 (diff)
downloadaur-98bbf25e862bf1b30fe010c99f16f499669f1a3b.tar.gz
updated to proper VCS settings
-rw-r--r--PKGBUILD27
1 files changed, 11 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 82c554dec97..a0d7dbb8697 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,25 @@
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop@nuclear.lu.se>
pkgname=htmlize-git
-pkgver=20150122
+_pkgname=htmlize
+pkgver=r96.aa6e2f6
pkgrel=1
pkgdesc="Convert buffer text and decorations to HTML"
url="http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.cgi"
arch=('any')
license=('GPL2')
depends=('emacs')
+provides=("htmlize")
makedepends=('git')
-#source=("http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.cgi")
-#md5sums=('4c455a6daea159404aafb1a02611177b')
-#it doesn't seem to do git anymore
-_gitroot='http://fly.srk.fer.hr/~hniksic/emacs/htmlize.git'
-_gitname=${pkgname}
+source=($_pkgname::git+http://fly.srk.fer.hr/~hniksic/emacs/htmlize.git)
+md5sums=('SKIP')
-package() {
- cd ${srcdir}
- if [ -d ${srcdir}/$_gitname ]; then
- cd $_gitname && git pull origin
- msg "The local files are updated."
- else
- git clone $_gitroot $_gitname
- fi
+pkgver() {
+ cd ${srcdir}/$_pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
-# msg "GIT checkout done or server timeout"
- install -m644 -D ${srcdir}/$_gitname/htmlize.el $pkgdir/usr/share/emacs/site-lisp/htmlize.el
+package() {
+ install -m644 -D ${srcdir}/$_pkgname/htmlize.el $pkgdir/usr/share/emacs/site-lisp/htmlize.el
}