diff options
author | TheAifam5 | 2019-11-29 16:38:34 +0100 |
---|---|---|
committer | TheAifam5 | 2019-11-29 16:38:34 +0100 |
commit | 1199d14e750844883bab4d7d1090e421e70e92c4 (patch) | |
tree | 6133574f3ba40658980c36350ef672430ec51c70 | |
download | aur-openscad-nopscadlib-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | openscad-nopscadlib-git.install | 14 |
4 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3be005970778 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = openscad-nopscadlib-git + pkgdesc = Library of parts modelled in OpenSCAD and a framework for making projects. + pkgver = r151.6f93b6a + pkgrel = 1 + url = https://github.com/nophead/NopSCADlib + install = openscad-nopscadlib-git.install + arch = any + license = GPL-3.0 + makedepends = git + depends = openscad + source = nopscadlib::git+https://github.com/nophead/NopSCADlib.git + sha512sums = SKIP + +pkgname = openscad-nopscadlib-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1c1b6994cedc --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/*.pkg.* +/nopscadlib +/pkg +/src
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..94a24f64349e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: TheAifam5 <theaifam5@gmail.com> + +pkgname='openscad-nopscadlib-git' +_gitname='nopscadlib' +pkgver=r151.6f93b6a +pkgrel=1 +pkgdesc='Library of parts modelled in OpenSCAD and a framework for making projects.' +url='https://github.com/nophead/NopSCADlib' +arch=('any') +depends=('openscad') +makedepends=('git') +license=('GPL-3.0') +source=("${_gitname}::git+https://github.com/nophead/NopSCADlib.git") +sha512sums=('SKIP') + +install="openscad-${_gitname}-git.install" + +pkgver() { + cd "${_gitname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "${_gitname}" + rm -rf *test* + rm -rf examples +} + +package() { + mkdir -p "${pkgdir}/usr/share/openscad/libraries/${_gitname}/" + + cd "${_gitname}" + + find . -type f -name '*.scad' -exec install -Dm 744 '{}' "$pkgdir/usr/share/openscad/libraries/${_gitname}/{}" \; +} + diff --git a/openscad-nopscadlib-git.install b/openscad-nopscadlib-git.install new file mode 100644 index 000000000000..fa4508cffbc2 --- /dev/null +++ b/openscad-nopscadlib-git.install @@ -0,0 +1,14 @@ +post_install() { + cat << EOF + + ## NOTE ############################################################ + # # + # NopSCADlib installed in: /usr/share/openscad/libraries/nopscadlib/ # + # # + # In OpenSCAD, import the desired files with this template: # + # use <nopscadlib/SOMETHING.scad> # + # # + ###################################################################### + +EOF +} |