summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2021-04-08 00:37:03 +0000
committerDaniel Bermond2021-04-08 00:37:03 +0000
commitb6bba3c446f92a8e3e7c60221a38c046433f9498 (patch)
treeb85f59bbc3a3736959f9cd5b6af15a243acd7ed2 /PKGBUILD
downloadaur-gromit-mpx.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a527abc1ba3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Daniel Bermond <dbermond@archlinux.org>
+
+pkgname=gromit-mpx
+pkgver=1.4
+pkgrel=1
+pkgdesc='On-screen annotation tool'
+arch=('x86_64')
+url='https://github.com/bk138/gromit-mpx/'
+license=('GPL')
+depends=('cairo' 'gdk-pixbuf2' 'glib2' 'gtk3' 'libappindicator-gtk3' 'libx11' 'libxi')
+makedepends=('git' 'cmake')
+backup=('etc/gromit-mpx/gromit-mpx.cfg')
+source=("git+https://github.com/bk138/gromit-mpx.git#tag=${pkgver}"
+ 'flatpak-shared-modules'::'git+https://github.com/flathub/shared-modules.git')
+sha256sums=('SKIP'
+ 'SKIP')
+
+prepare() {
+ git -C gromit-mpx submodule init
+ git -C gromit-mpx config --local submodule.flatpak/shared-modules.url "${srcdir}/flatpak-shared-modules"
+ git -C gromit-mpx submodule update
+}
+
+build() {
+ cmake -B build -S gromit-mpx \
+ -DCMAKE_BUILD_TYPE:STRING='None' \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -DCMAKE_INSTALL_SYSCONFDIR:PATH='/etc' \
+ -Wno-dev
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}