summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁdler Neves2019-11-08 21:04:16 -0300
committerÁdler Neves2019-11-08 21:04:16 -0300
commita9910bf09741bc28d3747dc0f739153079154622 (patch)
tree1754cdbbf6d216c85e910f14db59f323116a1a18
downloadaur-dia-integrated.tar.gz
Initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD38
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1c0bc23dcd4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = dia-integrated
+ pkgdesc = A shortcut to display a GTK+ based diagram creation program in a single window (with --integrated argument).
+ pkgver = 0.0.1
+ pkgrel = 1
+ url = http://live.gnome.org/Dia
+ arch = any
+ license = GPL
+ makedepends = dia
+ depends = dia
+ provides = dia-integrated
+
+pkgname = dia-integrated
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..eccdc342af0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg
+pkg/**
+src
+src/**
+/*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0a64bc2acfc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Adler Neves <adlerosn@gmail.com>
+
+provides=('dia-integrated')
+conflicts=()
+pkgver=0.0.1
+pkgname=dia-integrated
+pkgrel=1
+pkgdesc="A shortcut to display a GTK+ based diagram creation program in a single window (with --integrated argument)."
+arch=('any')
+depends=('dia')
+makedepends=('dia')
+url="http://live.gnome.org/Dia"
+options=()
+license=('GPL')
+
+prepare() {
+ echo "#!/bin/bash" > "${srcdir}/dia-integrated"
+ echo "dia --integrated \"\$@\"" >> "${srcdir}/dia-integrated"
+ cat /usr/share/mime-info/dia.keys | sed 's/x-dia-diagram/x-dia-integrated-diagram/' | sed 's/=dia/=dia-integrated/' > "${srcdir}/dia-integrated.keys"
+ cat /usr/share/mime-info/dia.mime | sed 's/x-dia-diagram/x-dia-integrated-diagram/' > "${srcdir}/dia-integrated.mime"
+ cat /usr/share/applications/dia.desktop | sed '/^Name/ s/$/ (--integrated)/' | sed '/^Comment/ s/$/ (--integrated)/' | sed 's/^Exec=dia/Exec=dia-integrated/' | sed 's/x-dia-diagram/x-dia-integrated-diagram/' > "${srcdir}/dia-integrated.desktop"
+}
+
+package() {
+ mkdir -p "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/usr/share/applications"
+ mkdir -p "${pkgdir}/usr/share/mime-info"
+
+ cp "${srcdir}/dia-integrated" "${pkgdir}/usr/bin/dia-integrated"
+ cp "${srcdir}/dia-integrated.desktop" "${pkgdir}/usr/share/applications/dia-integrated.desktop"
+ cp "${srcdir}/dia-integrated.mime" "${pkgdir}/usr/share/mime-info/dia-integrated.mime"
+ cp "${srcdir}/dia-integrated.keys" "${pkgdir}/usr/share/mime-info/dia-integrated.keys"
+
+ chmod 0755 "${pkgdir}/usr/share/applications/dia-integrated.desktop"
+ chmod 0755 "${pkgdir}/usr/bin/dia-integrated"
+ chmod 0644 "${pkgdir}/usr/share/mime-info/dia-integrated.mime"
+ chmod 0644 "${pkgdir}/usr/share/mime-info/dia-integrated.keys"
+}