diff options
author | Alexander Daum | 2023-04-02 11:40:01 +0200 |
---|---|---|
committer | Alexander Daum | 2023-04-02 11:40:01 +0200 |
commit | 91a001fe430a6434fd12056c9f95434b5713bd30 (patch) | |
tree | 2797c1b9b33a0b4e19590e1ad15dd01f97d3ce48 /PKGBUILD | |
download | aur-91a001fe430a6434fd12056c9f95434b5713bd30.tar.gz |
Create the package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d70ea8b68093 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Alexander Daum <alexander.daum at mailbox dot org> + +pkgname='openscad-thread-profile-git' +_gitname='IoP-satellite' +pkgver=r19.a78b36f +pkgrel=1 +pkgdesc='thread_profile.scad for threads in OpenSCAD. Part of the IoP-satellite repo' +url='https://github.com/MisterHW/IoP-satellite' +license=( + 'unknown' +) +source=( + "git+https://github.com/MisterHW/IoP-satellite.git" +) +sha512sums=( + 'SKIP' +) +arch=( + 'x86_64' + 'i686' +) +depends=( + 'openscad' + 'openscad-scad-utils-git' + 'openscad-list-compr-demos-git' +) + +pkgver() { + cd "$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + +build() { + # nop + cat /dev/null +} + +package() { + # ensure libraries folder exists + mkdir -p $pkgdir/usr/share/openscad/libraries/ + cd "$_gitname" + install -Dm644 "OpenSCAD bottle threads/thread_profile.scad" $pkgdir/usr/share/openscad/libraries/ +} |