diff options
author | Cayetano Santos | 2020-06-12 09:44:25 +0200 |
---|---|---|
committer | Cayetano Santos | 2020-06-12 09:47:39 +0200 |
commit | c50ca55d3f9c4dd83c59d0d7d3509323333bbd61 (patch) | |
tree | be04564bb12d9578b4611e6940926dc7b1a61217 | |
download | aur-c50ca55d3f9c4dd83c59d0d7d3509323333bbd61.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitlab-ci.yml | 26 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | readme.org | 8 |
4 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..371135d32669 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-vsg + pkgdesc = Coding style enforcement for VHDL + pkgver = 1 + pkgrel = 11.1 + url = https://github.com/jeremiah-c-leary/vhdl-style-guide/ + arch = any + license = GPLv3 + makedepends = git + depends = python + depends = python-setuptools + provides = python-vsg + conflicts = python-vsg-git + options = !emptydirs + source = git+https://github.com/jeremiah-c-leary/vhdl-style-guide#tag=1.11.1 + md5sums = SKIP + +pkgname = python-vsg + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..6018c634b5ba --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# * Prepare + +image: archlinux + +variables: + DOSUDO: "notroot ALL=(ALL) NOPASSWD: ALL" + +stages: + - test + +before_script: + - pacman --noconfirm -Syu + - pacman --noconfirm -S sudo git fakeroot binutils + - useradd -m notroot + - echo "$DOSUDO" > /etc/sudoers.d/notroot + +# * Test + +build-package: + stage: test + script: + - cd /home/notroot + - su notroot -c "git clone https://aur.archlinux.org/python-vhdl-style-guide.git" + - cd python-vhdl-style-guide + - su notroot -c "makepkg --noconfirm --syncdeps --rmdeps --install --clean" + - vsg -h diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..05e29324fb84 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: csantosb <csantosb dot inventati dot org> +pkgname=python-vsg +pkgver=1 +pkgrel=11.1 +pkgdesc="Coding style enforcement for VHDL" +arch=('any') +url="https://github.com/jeremiah-c-leary/vhdl-style-guide/" +license=('GPLv3') +conflicts=('python-vsg-git') +provides=('python-vsg') +depends=('python' 'python-setuptools') + +makedepends=('git') + +options=(!emptydirs) +source=("git+https://github.com/jeremiah-c-leary/vhdl-style-guide#tag=${pkgver}.${pkgrel}") +md5sums=('SKIP') + +build() { + cd "${srcdir}/vhdl-style-guide" + python setup.py build +} + +package() { + cd "${srcdir}/vhdl-style-guide" + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + install -m 644 -D ./LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE +} diff --git a/readme.org b/readme.org new file mode 100644 index 000000000000..11fe040da1a8 --- /dev/null +++ b/readme.org @@ -0,0 +1,8 @@ +#+TITLE: Python-vhdl-style-guide AUR package + +[[https://gitlab.com/aur-packages/python-vhdl-style-guide/-/commits/master][https://gitlab.com/aur-packages/python-vhdl-style-guide/badges/master/pipeline.svg]] + +[[https://vhdl-style-guide.readthedocs.io/en/latest/index.html][Vhdl style guide]] provides coding style guide enforcement for VHDL code. This [[https://wiki.archlinux.org/index.php/Arch_Build_System][PKGBUILD]] provides a way +to build a package suitable for [[https://www.archlinux.org/][Archlinux]]. + +This project lives [[https://gitlab.com/aur-packages/python-vhdl-style-guide][here]]. The included =yml= file tests the [[https://gitlab.com/aur-packages/python-vhdl-style-guide/pipelines][build]] process. |