summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD16
-rw-r--r--drawpile.install11
3 files changed, 26 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f9c76b47b2..496a71a26a1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,24 @@
pkgbase = drawpile
pkgdesc = Collaborative drawing program specially made for use with pen tablets
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = http://drawpile.net/
+ install = drawpile.install
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 = kdnssd
+ depends = giflib
+ depends = miniupnpc
+ depends = libmicrohttpd
depends = qt5-multimedia
- depends = cmake
- optdepends = libmicrohttpd
+ depends = qt5-color-picker
source = http://drawpile.net/files/src/drawpile-1.0.0.tar.gz
sha256sums = bc574ddbad1578e84ca36605c338400239d4f106750e253ca7cf027c0b42c454
diff --git a/PKGBUILD b/PKGBUILD
index 3fa8c1aeb86..3d9ed470352 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,31 +4,31 @@
pkgname=drawpile
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
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")
+depends=('karchive' 'kdnssd' 'giflib' 'miniupnpc' 'libmicrohttpd' 'qt5-multimedia' 'qt5-color-picker')
+makedepends=('qt5-base' 'qt5-tools' 'qt5-translations' 'qt5-svg' 'ninja')
+install="${pkgname}.install"
+source=("http://drawpile.net/files/src/${pkgname}-${pkgver}.tar.gz")
sha256sums=('bc574ddbad1578e84ca36605c338400239d4f106750e253ca7cf027c0b42c454')
build() {
- cd "$pkgname-$pkgver"
+ cd "${pkgname}-${pkgver}"
# Ensure build is an empty directory
rm -rf build
mkdir -p build
cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -G Ninja
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -G Ninja -Wno-dev
ninja
}
package() {
- cd "$pkgname-$pkgver"
+ cd "${pkgname}-${pkgver}"
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "desktop/$pkgname-128x128.png" \
diff --git a/drawpile.install b/drawpile.install
new file mode 100644
index 00000000000..302f9a38e9a
--- /dev/null
+++ b/drawpile.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}