view python/py-editorconfig/py-editorconfig.sh @ 901:e2de15b7d2b1

vanilla: update autotools.sh template
author David Demelier <markand@malikania.fr>
date Mon, 26 Aug 2019 20:45:00 +0200
parents 8580d997f05b
children a133976e0783
line wrap: on
line source

#!/bin/sh
#
# Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr>
# Copyright (c) 2019 David Demelier <markand@malikania.fr>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

PKGNAME=py-editorconfig
PKGVERSION=0.12.2
PKGREVISION=1
PKGLICENSE="BSD PSF"
PKGSUMMARY="EditorConfig File Locator and Interpreter for Python"
PKGDOWNLOAD="https://pypi.io/packages/source/E/EditorConfig/EditorConfig-$PKGVERSION.tar.gz"
PKGDEPENDS="python/python"

build()
{
	rm -rf EditorConfig-$PKGVERSION
	tar xvf EditorConfig-$PKGVERSION.tar.gz
	cd EditorConfig-$PKGVERSION

	python setup.py install --root=$DESTDIR --prefix=/.

	cd ..
	rm -rf EditorConfig-$PKGVERSION
}