diff options
author | Simon Repp | 2020-10-25 11:17:19 +0100 |
---|---|---|
committer | Simon Repp | 2020-10-25 11:35:24 +0100 |
commit | 69b30aa5ee91dc8960bc941739906cef9bb4459a (patch) | |
tree | eaf597ccc77d3190465d311d54cba14e6f9889f7 /PKGBUILD | |
download | aur-69b30aa5ee91dc8960bc941739906cef9bb4459a.tar.gz |
Initialize
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..85d9327871f7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Simon Repp <simon@fdpl.io> + +arch=('i686' 'x86_64') +conflicts=('ommpfritt') +depends=('lib2geom-git' 'poppler-qt5' 'pybind11' 'python3' 'qt5-base' 'qt5-imageformats' 'qt5-svg' 'qt5-tools' 'qt5-translations') +license=('GPL3') +makedepends=('cmake' 'git') +md5sums=( + '39e4dba5aa7eff71507a96c49457edcc' + 'SKIP' +) +pkgdesc="Semantic, procedural, non-destructive vector modelling" +pkgname=ommpfritt-git +pkgrel=1 +pkgver=0.1.3.r568.g62a6fe81 +provides=('ommpfritt') +source=( + ommpfritt.desktop + "ommpfritt::git+https://github.com/pasbi/ommpfritt.git" +) +url="https://github.com/pasbi/ommpfritt" + +build() { + cd "${srcdir}"/ommpfritt + rm -rf build + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release \ + -DQT_QM_PATH=/usr/share/qt/translations \ + .. + make -j2 +} + +package() { + cd "${srcdir}" + install -Dm644 ommpfritt.desktop "${pkgdir}"/usr/share/applications/ommpfritt.desktop + + cd "${srcdir}"/ommpfritt/build + install -Dm755 ommpfritt "${pkgdir}"/usr/bin/ommpfritt +} + +pkgver() { + cd ommpfritt + git describe --exclude continuous --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} |