summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander F Rødseth2015-06-10 15:24:10 +0200
committerAlexander F Rødseth2015-06-10 15:24:10 +0200
commit041c107d8fb405abf1729ea2ac772e4c7d42f867 (patch)
tree8af358599b18693dd2ad25006daaa83e878016f5
downloadaur-041c107d8fb405abf1729ea2ac772e4c7d42f867.tar.gz
Initial import
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD39
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c3b39cf4158
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = drawpile
+ pkgdesc = Collaborative drawing program specially made for use with pen tablets
+ pkgver = 0.9.9
+ pkgrel = 1
+ url = http://drawpile.net/
+ arch = x86_64
+ arch = i686
+ license = GPL2
+ makedepends = qt5-base
+ makedepends = karchive
+ makedepends = qt5-tools
+ makedepends = qt5-translations
+ makedepends = qt5-svg
+ makedepends = qt5-multimedia
+ makedepends = ninja
+ depends = qt5-base
+ depends = karchive
+ depends = qt5-tools
+ depends = qt5-translations
+ depends = qt5-svg
+ depends = qt5-multimedia
+ depends = cmake
+ optdepends = libmicrohttpd
+ source = http://drawpile.net/files/src/drawpile-0.9.9.tar.gz
+ sha256sums = 72c98f7b5b3bed49067518872bc9bbc5ab05bb3e79ae588bcb036234627dede6
+
+pkgname = drawpile
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cf4b0e16ada
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Franco Iacomella <yaco@gnu.org>
+
+pkgname=drawpile
+pkgver=0.9.9
+pkgrel=1
+pkgdesc='Collaborative drawing program specially made for use with pen tablets'
+arch=('x86_64' 'i686')
+url='http://drawpile.net/'
+license=('GPL2')
+makedepends=('qt5-base' 'karchive' 'qt5-tools' 'qt5-translations' 'qt5-svg' 'qt5-multimedia' 'ninja')
+depends=('qt5-base' 'karchive' 'qt5-tools' 'qt5-translations' 'qt5-svg' 'qt5-multimedia' 'cmake')
+optdepends=('libmicrohttpd')
+source=("http://drawpile.net/files/src/$pkgname-$pkgver.tar.gz")
+sha256sums=('72c98f7b5b3bed49067518872bc9bbc5ab05bb3e79ae588bcb036234627dede6')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ # Ensure build is an empty directory
+ rm -rf build
+ mkdir -p build
+ cd build
+
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -G Ninja
+ ninja
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ DESTDIR="$pkgdir" ninja -C build install
+ install -Dm644 "desktop/$pkgname-128x128.png" \
+ "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ install -Dm644 "desktop/$pkgname.desktop" \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+}
+
+# vim:set ts=2 sw=2 et: