Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 437a535054
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (33 sloc) 1.018 kB
# Maintainer: Kwpolska <kwpolska@kwpolska.tk>
pkgname=trashman-git
pkgver=20121007
pkgrel=1
pkgdesc='A Python trash manager. Python 3 build, version from git.'
arch=('any')
url='https://github.com/Kwpolska/trashman'
license=('BSD')
depends=('python')
makedepends=('git')
provides=('trashman')
conflicts=('trashman')
options=(!emptydirs)
_gitroot=git://github.com/Kwpolska/trashman.git
_gitname=trashman
package() {
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
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "${srcdir}/${_gitname}-build"
git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
Jump to Line
Something went wrong with that request. Please try again.