1 # Maintainer: Army <uli armbruster who uses the google mail service>
7 pkgdesc="A lightweight device mounter"
9 url="https://github.com/LemonBoy/ldm"
13 provides=(${_pkgname})
14 conflicts=(${_pkgname})
16 _gitroot="https://github.com/LemonBoy/ldm.git"
17 _gitname="${_pkgname}"
21 msg "Connecting to GIT server...."
23 if [ -d ${_gitname} ] ; then
24 cd ${_gitname} && git pull origin
25 msg "The local files are updated."
27 git clone ${_gitroot} ${_gitname}
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "${srcdir}/${_gitname}-build"
33 cp -a "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34 cd "${srcdir}/${_gitname}-build"
40 install -Dm755 "${srcdir}/${_gitname}-build/${_pkgname}.daemon" "${pkgdir}/etc/rc.d/${_pkgname}"
41 install -Dm755 "${srcdir}/${_gitname}-build/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
42 install -Dm644 "${srcdir}/${_gitname}-build/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"