summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo Bargen2018-10-22 14:54:56 +0200
committerDanilo Bargen2018-10-22 14:54:56 +0200
commit409d6231fb21ac54cc0dc23059ebe2804b9a161e (patch)
tree6cac7d53374031839bd219f72a548c2ce1a421b7
downloadaur-409d6231fb21ac54cc0dc23059ebe2804b9a161e.tar.gz
Version 0.1.0_rc1-1
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD41
-rw-r--r--librepcb-appimage.install16
4 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..37a0735dabc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Mon Oct 22 12:54:28 UTC 2018
+pkgbase = librepcb-appimage
+ pkgdesc = A free EDA software to develop printed circuit boards.
+ pkgver = 0.1.0_rc1
+ pkgrel = 1
+ url = http://librepcb.org/
+ install = librepcb-appimage.install
+ arch = x86_64
+ license = GPL
+ depends = qt5-base
+ depends = desktop-file-utils
+ depends = shared-mime-info
+ depends = openssl
+ depends = zlib
+ provides = librepcb
+ conflicts = librepcb
+ noextract = librepcb-0.1.0-rc1-linux-x86_64.AppImage
+ options = !strip
+ options = !emptydirs
+ source = https://download.librepcb.org/releases/0.1.0-rc1/librepcb-0.1.0-rc1-linux-x86_64.AppImage
+ sha256sums = 82dcf96f2d301330094adda16aae3e01fdf9a7fdd195995db13a22516f0adc31
+
+pkgname = librepcb-appimage
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e3ac5ec0a65
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.swp
+*.tar.xz
+*.AppImage
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cadcdee9652
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
+pkgname=librepcb-appimage
+pkgver=0.1.0_rc1
+_pkgver=${pkgver/_/-}
+pkgrel=1
+pkgdesc="A free EDA software to develop printed circuit boards."
+arch=('x86_64')
+url="http://librepcb.org/"
+license=('GPL')
+depends=('qt5-base' 'desktop-file-utils' 'shared-mime-info' 'openssl' 'zlib')
+makedepends=()
+provides=('librepcb')
+conflicts=('librepcb')
+install=${pkgname}.install
+_appimage="librepcb-${_pkgver}-linux-${arch}.AppImage"
+noextract=("${_appimage}")
+options=('!strip' '!emptydirs')
+source=("https://download.librepcb.org/releases/${_pkgver}/${_appimage}")
+sha256sums=('82dcf96f2d301330094adda16aae3e01fdf9a7fdd195995db13a22516f0adc31')
+
+build() {
+ chmod +x ${_appimage}
+ ./${_appimage} --appimage-extract 2>/dev/null
+ chmod -x ${_appimage}
+}
+
+package() {
+ # Appimage
+ install -D -m755 "${srcdir}/${_appimage}" "${pkgdir}/usr/local/bin/librepcb"
+
+ # Metadata
+ mkdir -p "${pkgdir}/usr/share"
+ cp -R "squashfs-root/opt/share/applications" "${pkgdir}/usr/share/"
+ cp -R "squashfs-root/opt/share/icons" "${pkgdir}/usr/share/"
+ cp -R "squashfs-root/opt/share/metainfo" "${pkgdir}/usr/share/"
+ cp -R "squashfs-root/opt/share/mime" "${pkgdir}/usr/share/"
+ find "${pkgdir}/usr/share" -type d -exec chmod 755 {} \;
+ find "${pkgdir}/usr/share" -type f -exec chmod 644 {} \;
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/librepcb-appimage.install b/librepcb-appimage.install
new file mode 100644
index 00000000000..423fbf48c24
--- /dev/null
+++ b/librepcb-appimage.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo "Update icon cache..."
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ echo "Update mime database..."
+ update-mime-database usr/share/mime &> /dev/null
+ echo "Update desktop database..."
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}