summaryrefslogtreecommitdiff
path: root/pcr/clx-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-04-29 19:00:08 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-04-29 19:00:08 -0300
commit95f2ac36f33041a50fd7b6f3751c137be7d7ebe9 (patch)
tree8983ed6b70f30b06544a08eb342a8509e7ba6d3d /pcr/clx-git
parent04739bd75cf27deb03de36ed8ab1c31c1729a9ba (diff)
clx-git-r180.11eb3e5-1: updating version
Diffstat (limited to 'pcr/clx-git')
-rw-r--r--pcr/clx-git/PKGBUILD92
1 files changed, 37 insertions, 55 deletions
diff --git a/pcr/clx-git/PKGBUILD b/pcr/clx-git/PKGBUILD
index 17165711c..f8c2993f4 100644
--- a/pcr/clx-git/PKGBUILD
+++ b/pcr/clx-git/PKGBUILD
@@ -1,71 +1,53 @@
-#Contributor (Arch): Akshay Srinivasan <akshaysrinivasan at gmail.com>
+# Maintainer (Arch): Chris Dunder <cdunder@gmail.com>
+
pkgname=clx-git
_clname=clx
-pkgver=20120421
+pkgver=r180.11eb3e5
pkgrel=1
-pkgdesc="Xlib for common lisp systems"
arch=('i686' 'x86_64' 'mips64el')
-url="http://www.cliki.net/CLX"
+pkgdesc="An X11 client for Common Lisp"
+url="https://github.com/sharplispers/clx"
license=('custom')
+provides=('clx')
+conflicts=('clx')
depends=('x-server' 'sbcl')
-makedepends=('texinfo')
+makedepends=('git' 'texinfo')
install=clx.install
-source=(README.licensing)
-md5sums=('74858379015567928f1eee186d9db1a4')
-
-conflicts=('clx')
-provides=('clx')
-
-makedepends=('git')
+source=(${pkgname}::git+https://github.com/sharplispers/clx.git
+ README.licensing)
+md5sums=('SKIP'
+ 'SKIP')
-_gitroot="git://github.com/sharplispers/clx.git"
-_gitname="clx"
+pkgver() {
+ cd ${srcdir}/${pkgname}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
build() {
+ cd ${srcdir}/${pkgname}/manual
- cat << EOM
-
- WARNING!
-
- You are building a package using a snapshot from a repository. The
- resulting package may be unusable or pose a security risk, since
- the install script does not check source file hashes. Do not continue
- if this is undesirable.
-
-EOM
-
- install -d ${pkgdir}/usr/share/common-lisp/systems
- install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/{debug,demo,test}
- install -d ${pkgdir}/usr/share/licenses/${_clname}
- install -d ${pkgdir}/usr/share/info
-
- ### Git checkout
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- if [ -d $_gitname ] ; then
- cd $_gitname && git pull origin
- msg "The local files are updated."
- else
- git clone $_gitroot $_gitname
- fi
-
- cd ${pkgdir}/usr/share/common-lisp/source/${_clname}
-
- install -m 644 -t . ${srcdir}/${_gitname}/*.lisp
- install -m 644 -t debug ${srcdir}/${_gitname}/debug/*.lisp
- install -m 644 -t demo ${srcdir}/${_gitname}/demo/*.lisp
- install -m 644 -t test ${srcdir}/${_gitname}/test/*.lisp
-
- install -m 644 -t . ${srcdir}/${_gitname}/${_clname}.asd
- cd ${pkgdir}/usr/share/common-lisp/systems
- ln -s ../source/${_clname}/${_clname}.asd .
-
- cd ${srcdir}/${_gitname}/manual
makeinfo ${_clname}.texinfo
- install -m 644 ${_clname}.info ${pkgdir}/usr/share/info
+}
- install -m 644 ${srcdir}/README.licensing ${pkgdir}/usr/share/licenses/${_clname}
+package() {
+ cd ${srcdir}/${pkgname}
+
+ install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}
+ install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} *.lisp
+ install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} ${_clname}.asd
+ install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/debug
+ install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/debug debug/*.lisp
+ install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/demo
+ install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/demo demo/*.lisp
+ install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/test
+ install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/test test/*.lisp
+ install -d ${pkgdir}/usr/share/info
+ install -m 644 -t ${pkgdir}/usr/share/info manual/${_clname}.info
+ install -d ${pkgdir}/usr/share/licenses/${_clname}
+ install -m 644 -t ${pkgdir}/usr/share/licenses/${_clname} ${srcdir}/README.licensing
+ install -d ${pkgdir}/usr/share/common-lisp/systems
+ cd ${pkgdir}/usr/share/common-lisp/systems
+ ln -s ../source/${_clname}/${_clname}.asd .
}