Source

vasm / _build / PKGBUILD

Full commit
# Contributor: pierce.jason [VL7]

pkgname=vasm
pkgver=3.0a2
pkgrel=1
pkgdesc="Vectorlinux's Administration & System Menu (Alpha release). System configuration tool for both TUI and GUI. Complete rewrite of vasm with goals to provide greater modularity for maintainability and support for localization and internationalization, and tighter integration with the distro installer and the system itself. The prior vasm (renamed and moved to vasm-legacy) will remain installed on the system for your convenience."
arch=('any')
url="https://bitbucket.org/m0e_lnx/vasm"
license=('GPL3')
depends=( 'python' 'pyparted' 'python-pexpect' 'psutil' 'vasm-legacy' 'pygtk' 'urwid' 'gparted' )
ADDRB="pyparted, python-pexpect, psutil, vasm-legacy, pygtk, gparted, urwid"
optdepends=(	"urwid: Needed for tui (commandline) interface"
		"pygtk: Needed for gui interface"
		"gparted: Not yet in 64bit repo, only needed in gui"
		"vasm-legacy: The tried and true bash vasm") # Manually mirror to slack-suggests
makedepends=( 'setuptools' ) # Manually install before buildinging package
backup=("etc/sudoers.d/vasm")
changelog="slack-changes"
_hgrepo="m0e_lnx"
source=("https://bitbucket.org/$_hgrepo/vasm/downloads/$pkgname-$pkgver.tar.bz2"
	"slack-desc"
	"sudoers.d-vasm")
install="doinst.sh"
sha256sums=('...'
            '12d54abfa108116446cca9f8e266e8f8c2e071fbbaf44132d1bc3bd3c0260d40'
            'f3cf56b9a9e8578176ca64d5c69e2d8ddec4aa24a9278167a85d9bf915f21bab')
build() {
	cd $srcdir/$pkgname-$pkgver;

	# Main stuff
	python setup.py install --root="$pkgdir/";

	# Text docs
	mkdir -p $pkgdir/usr/doc/$pkgname-$pkgver;
	cp *.txt $pkgdir/usr/doc/$pkgname-$pkgver;	
	cp src/vasm/data/*.txt $pkgdir/usr/doc/$pkgname-$pkgver;
	cp src/vasm/data/LICENSE $pkgdir/usr/doc/$pkgname-$pkgver;

	# Manpage(s)
	mkdir -p $pkgdir/usr/share/man/man1/
	install -m644 docs/vasm.1 "${pkgdir}/usr/share/man/man1/"

	# Some slack- docs
	cd $srcdir;
	cp ../slack-{changes,desc} $pkgdir/usr/doc/$pkgname-$pkgver;

	# Sudoers permissions
	install -d -m700 $pkgdir/etc/sudoers.d
	install -m400 sudoers.d-vasm $pkgdir/etc/sudoers.d/vasm.new
}