PKGBUILDs/cmake-format/default/PKGBUILD

21 lines
761 B
Bash

# Maintainer: Martchus <martchus@gmx.net>
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.
pkgname=cmake-format
pkgver=0.6.2
pkgrel=1
pkgdesc='Source code formatter for CMake listfiles'
arch=('any')
url='https://github.com/cheshirekow/cmake_format'
license=('GPL3')
depends=('python-setuptools' 'python-yaml' 'python-jinja')
source=("$pkgname-$pkgver.tar.gz::https://github.com/cheshirekow/cmake_format/archive/v${pkgver}.tar.gz")
sha512sums=('0e7626b2a59b1a1f08d06b84b4d0a4c1d415a57d72ad5d6ba5b5aeea93c73242ff95421cdca59f5776ce50a024d3e5478304fd6b83f8be85643fc3a697654d64')
package() {
cd "$srcdir/cmake_format-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}