summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD36
-rw-r--r--masterpdfeditor.desktop9
-rw-r--r--masterpdfeditor.install11
4 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..3f9f6e2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = masterpdfeditor
+ pkgdesc = A complete solution for creation and editing PDF files. (Free for non-commercial use)
+ pkgver = 3.0.62
+ pkgrel = 3
+ url = http://code-industry.net/free-pdf-editor.php
+ install = masterpdfeditor.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = qt4
+ source = masterpdfeditor.desktop
+ sha256sums = 29218c206e5b78776bc3ec44a760773273274bb56baee5e19e06c3ec55db59fd
+ source_i686 = http://code-industry.net/public/master-pdf-editor-3.0.62_i386.tar.gz
+ sha256sums_i686 = 5505ac3e7a4956ff794a5b568e1b07d427c60629692029ba9737923dce6985eb
+ source_x86_64 = http://code-industry.net/public/master-pdf-editor-3.0.62_amd64.tar.gz
+ sha256sums_x86_64 = 8849e0ddb35a9cee12042aa56bfa6096f08e945139c09dbaa00356a71767ef2f
+
+pkgname = masterpdfeditor
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..81889c8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Miguel Revilla <yo@miguelrevilla.com>
+# Contributor: Ferik <djferik at gmail dot com>
+
+pkgname=masterpdfeditor
+pkgver=3.0.62
+pkgrel=3
+pkgdesc="A complete solution for creation and editing PDF files. (Free for non-commercial use)"
+url="http://code-industry.net/free-pdf-editor.php"
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('qt4')
+install=${pkgname}.install
+
+source=(${pkgname}.desktop)
+source_i686=(http://code-industry.net/public/master-pdf-editor-${pkgver}_i386.tar.gz)
+source_x86_64=(http://code-industry.net/public/master-pdf-editor-${pkgver}_amd64.tar.gz)
+
+sha256sums=('29218c206e5b78776bc3ec44a760773273274bb56baee5e19e06c3ec55db59fd')
+sha256sums_i686=('5505ac3e7a4956ff794a5b568e1b07d427c60629692029ba9737923dce6985eb')
+sha256sums_x86_64=('8849e0ddb35a9cee12042aa56bfa6096f08e945139c09dbaa00356a71767ef2f')
+
+package() {
+ mkdir -p "${pkgdir}/opt/masterpdfeditor"
+ cd "${srcdir}/master-pdf-editor-3"
+ /bin/tar cf - * | ( cd "${pkgdir}"/opt/masterpdfeditor; tar xfp - )
+ install -D -m755 "${srcdir}"/master-pdf-editor-3/lang/*.qm "${pkgdir}"/opt/masterpdfeditor/lang
+ install -D -m755 "${srcdir}"/master-pdf-editor-3/lang/*.ts "${pkgdir}"/opt/masterpdfeditor/lang
+ install -D -m644 "${srcdir}"/master-pdf-editor-3/license.txt "${pkgdir}"/usr/share/licenses/masterpdfeditor/LICENSE
+ install -D -m644 "${srcdir}"/master-pdf-editor-3/masterpdfeditor3.png "${pkgdir}"/usr/share/pixmaps/pdfeditor.png
+ install -D -m644 "${srcdir}"/masterpdfeditor.desktop "${pkgdir}"/usr/share/applications/masterpdfeditor.desktop
+ rm "${pkgdir}"/opt/masterpdfeditor/license.txt
+ chmod 644 "${pkgdir}"/opt/masterpdfeditor/lang/*
+ chmod 755 "${pkgdir}"/opt/masterpdfeditor/lang
+ mkdir -p "${pkgdir}"/usr/bin
+ ln -s /opt/masterpdfeditor/masterpdfeditor3 "${pkgdir}"/usr/bin/pdfeditor
+}
diff --git a/masterpdfeditor.desktop b/masterpdfeditor.desktop
new file mode 100644
index 0000000..dbd5ffb
--- /dev/null
+++ b/masterpdfeditor.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Master PDF Editor
+GenericName=Master PDF Editor
+Comment=Edit your PDF and XPS files
+Exec=/opt/masterpdfeditor/masterpdfeditor3 %f
+Icon=pdfeditor.png
+Categories=Office;Publishing;
+MimeType=application/pdf
diff --git a/masterpdfeditor.install b/masterpdfeditor.install
new file mode 100644
index 0000000..bb5f507
--- /dev/null
+++ b/masterpdfeditor.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}