blob: 745d2525654bb43f0090edef0130be5f5c686f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Scott Alfter <scott@alfter.us>
pkgname=stl_normalize
_git_commit=9f60064ed329a90bc0f38caf270f19e438eace85
pkgver=release_1.01.r11.g9f60064
pkgrel=1
provides=("stl_normalize")
pkgdesc="a script to normalize and validate STL files"
arch=(any)
url="https://github.com/revarbat/stl_normalize"
license=("BSD-2")
depends=(python-numpy python-pyquaternion python-opengl)
makedepends=(git)
source=(
"git+$url.git"
)
sha256sums=(
"SKIP"
)
pkgver()
{
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package()
{
cd "$pkgname"
mkdir -p $pkgdir/usr/bin
cp stl_normalize.py $pkgdir/usr/bin/stl_normalize
chmod +x $pkgdir/usr/bin/stl_normalize
}
|