1 # Contributor: fnord0 <fnord0 AT riseup DOT net>
6 pkgdesc="hURL is a hexadecimal & URL encoder + decoder"
8 url=("https://github.com/fnord0/hURL")
12 _gitroot=("http://github.com/fnord0/hURL.git")
19 if [ -d ${srcdir}/${_gitname} ] ; then
20 msg "Git checkout: Updating existing tree"
21 cd ${_gitname} && git pull origin
22 msg "Git checkout: Tree has been updated"
24 msg "Git checkout: Retrieving sources"
27 msg "Checkout completed"
30 rm -rf ${srcdir}/${_gitname}-build
31 cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
32 cd ${srcdir}/${_gitname}-build
35 cd ${srcdir}/${_gitname}-build
36 install -d ${pkgdir}/usr/share/${_gitname} || return 1
37 install -d ${pkgdir}/usr/bin || return 1
38 cp -a ${srcdir}/${_gitname}-build/* \
39 ${pkgdir}/usr/share/${_gitname} || return 1
40 ln -s /usr/share/${_gitname}/hURL \
41 ${pkgdir}/usr/bin/hURL || return 1
42 install -Dm644 README \
43 ${pkgdir}/usr/share/${_gitname}/README