Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

This is a PKGBUILD script to create a tdom package that is compatible with tcl 8.6 (see https://aur.archlinux.org/packages/tdom/)

View PKGBUILD.tdom-git
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 38 39 40 41 42 43 44 45 46 47 48 49 50
# Maintainer: Uwe Koloska <kolewu@koloro.de>
# Contributor: Dejan Cabrilo <dcabrilo@bitspan.rs>
 
pkgname=tdom-git
pkgver=20130121
pkgrel=1
pkgdesc="A fast XML/DOM/XPath package for Tcl written in C"
arch=('i686' 'x86_64')
url="http://tdom.github.com/"
license=('MPL')
groups=('devel')
depends=('expat' 'tcl')
makedepends=('git')
conflicts=('tdom')
provides=('tdom')
 
_gitroot=https://github.com/tDOM/tdom.git
_gitname="tdom"
 
build() {
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 --depth=1 "${_gitroot}" "${_gitname}"
fi
msg "GIT checkout done or server timeout"
 
msg "Starting make..."
 
cd "${srcdir}"
rm -rf "${_gitname}-build"
git clone "${_gitname}" "${_gitname}-build"
 
cd "${srcdir}/${_gitname}-build"
 
if [ $CARCH = "x86_64" ] ; then
./configure --prefix=/usr --enable-64bit --mandir=/usr/share/man
else
./configure --prefix=/usr --mandir=/usr/share/man
fi
make
}
 
package() {
make -C "${srcdir}/$_gitname-build" DESTDIR="$pkgdir/" install
}
Owner

incorporate the changes suggested by Daniel Wallace (but leaving the subshell around 'git pull')

Owner

update with changes suggested by Limao Luo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.