# vim: syn=sh ft=sh et sw=2 sts=2 ts=2 tw=0: #Packager: Cyrille Pontvieux pkgname=pyreadpartitions pkgver=1.0.0 pkgrel=1cp source=(https://github.com/jrd/${pkgname}/archive/v${pkgver}.tar.gz) sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://github.com/jrd/pyreadpartitions #options=('noextract' 'nosrcpack' 'nostrip' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (MBR and GPT partitions reader)" "Read MBR and GPT partitions directly from python." "No deps to external tools like libparted nor fdisk required." ) build() { cd $SRC/$pkgname-$pkgver || return 1 python setup.py build || return 1 python setup.py install --prefix=/usr --root="$PKG" --optimize=1 || return 1 }