diff options
author | Érico Rolim | 2020-02-16 00:40:19 -0300 |
---|---|---|
committer | Érico Rolim | 2020-02-16 00:40:19 -0300 |
commit | 057be68ac2ceba4ac35f60a8311242a7bfefe064 (patch) | |
tree | 6afe5b219d9f4e965475b48321fe7c8111408a33 | |
download | aur-057be68ac2ceba4ac35f60a8311242a7bfefe064.tar.gz |
Initial commit to AUR.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | fstl.desktop | 11 |
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..97462ce10dc1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = fstl-git + pkgdesc = A viewer for .stl files + pkgver = 0.9.3.r136.2b6185b + pkgrel = 1 + url = http://www.mattkeeter.com/projects/fstl/ + arch = any + license = MIT + makedepends = cmake + makedepends = icoutils + depends = qt5-base + source = fstl-git::git+https://github.com/mkeeter/fstl + source = fstl.desktop + sha256sums = SKIP + sha256sums = 1c08b873decc3fff335b476a9c0cc9ae65af038fca5360565e4f0b8beeea202b + +pkgname = fstl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..993050441875 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Érico Nogueira <ericonr at disroot dot org> +pkgname=fstl-git +pkgver=0.9.3.r136.2b6185b +pkgrel=1 +pkgdesc="A viewer for .stl files" +url="http://www.mattkeeter.com/projects/fstl/" +arch=('any') +license=('MIT') +depends=('qt5-base') +makedepends=('cmake' 'icoutils') +source=("$pkgname::git+https://github.com/mkeeter/fstl" + "fstl.desktop") +sha256sums=('SKIP' + '1c08b873decc3fff335b476a9c0cc9ae65af038fca5360565e4f0b8beeea202b') + +pkgver() { + cd "${srcdir}/${pkgname}" + printf "0.9.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + + mkdir -p build + pushd build + cmake .. + make + popd + + sed -n '/Copyright/,/PROVIDED/p' README.md > LICENSE + + pushd "exe" + icotool --extract --index=6 --output=../fstl.png fstl.ico + popd +} + +package() { + cd "${srcdir}/${pkgname}" + pushd "build" + make DESTDIR="${pkgdir}" install + install -Dm755 fstl "${pkgdir}/usr/bin/fstl" + popd + + install -D -m644 fstl.png "${pkgdir}/usr/share/pixmaps/fstl.png" + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + install -D -m644 "${srcdir}/fstl.desktop" "${pkgdir}/usr/share/applications/fstl.desktop" + +} diff --git a/fstl.desktop b/fstl.desktop new file mode 100644 index 000000000000..09294c8e9580 --- /dev/null +++ b/fstl.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=fstl +GenericName=STL viewer +Comment=A viewer for STL files +Exec=fstl %f +Terminal=false +Categories=Graphics;3DGraphics;Viewer;Qt; +Icon=fstl +MimeType=model/stl;model/x.stl-ascii;model/x.stl-binary; |