diff options
author | Tim Clifford | 2021-08-30 17:19:50 +0100 |
---|---|---|
committer | Tim Clifford | 2021-08-30 17:21:18 +0100 |
commit | b7d1b42a0f39e74e97a6931e4c6b8f8cdf780565 (patch) | |
tree | 78b04cce32a91860cef46640b099120e0a1b749d | |
download | aur-b7d1b42a0f39e74e97a6931e4c6b8f8cdf780565.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | gplates-appimage.yml | 17 | ||||
-rw-r--r-- | gplates.png | bin | 0 -> 42326 bytes | |||
-rw-r--r-- | gplates.sh | 2 |
5 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac23aa68d4cb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = gplates-bin + pkgdesc = GPlates - a plate tectonics program. Built as an AppImage from the Xenial deb + pkgver = 2.2 + pkgrel = 1 + url = https://www.gplates.org + arch = x86_64 + license = GPL2 + makedepends = dpkg + makedepends = imagemagick + makedepends = wget + makedepends = desktop-file-utils + options = !strip + source = gplates.sh + source = gplates-appimage.yml + source = gplates.png + source = https://raw.githubusercontent.com/AppImage/pkg2appimage/master/pkg2appimage + source = https://sourceforge.net/projects/gplates/files/gplates/2.2/gplates-ubuntu-xenial_2.2_1_amd64.deb + md5sums = 5f40760e7d3448a413354bbdcb72e529 + md5sums = 2ec83c32d7c3ac889097e2835188ad58 + md5sums = 4476faf94d5d8c919aeaa34aa0b2ed04 + md5sums = 29b5588e48f5705029ab3e954d16e40b + md5sums = 6ab1bd1d080e3a5815e2a282b33909a9 + +pkgname = gplates-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8095dada0bf0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Tim Clifford <tclifford at protonmail dot com> + +pkgname=gplates-bin +pkgver=2.2 +pkgrel=1 +pkgdesc="GPlates - a plate tectonics program. Built as an AppImage from the Xenial deb" +arch=('x86_64') +url="https://www.gplates.org" +license=('GPL2') +makedepends=('dpkg' 'imagemagick' 'wget' 'desktop-file-utils') +options=(!strip) # necessary otherwise the AppImage file in the package is truncated +source=( + gplates.sh + gplates-appimage.yml + gplates.png + https://raw.githubusercontent.com/AppImage/pkg2appimage/master/pkg2appimage + https://sourceforge.net/projects/gplates/files/gplates/${pkgver}/gplates-ubuntu-xenial_${pkgver}_1_amd64.deb +) +md5sums=( + 5f40760e7d3448a413354bbdcb72e529 + 2ec83c32d7c3ac889097e2835188ad58 + 4476faf94d5d8c919aeaa34aa0b2ed04 + 29b5588e48f5705029ab3e954d16e40b + 6ab1bd1d080e3a5815e2a282b33909a9 +) + +build() { + # put deb and icon in place + mkdir -p gplates + ln -sf $(realpath *.deb) gplates/ + cp $(realpath gplates.png) gplates/ + + # create appimage + _SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH + unset SOURCE_DATE_EPOCH + bash -ex ./pkg2appimage gplates-appimage.yml + SOURCE_DATE_EPOCH=$_SOURCE_DATE_EPOCH +} + +package() { + ls -l out + INSTALL_PATH="/opt/appimages/gplates.AppImage" + + # install icons + install -Dm644 "gplates.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/gplates.png" + + # install image file and desktop file + install -Dm755 ./out/*.AppImage "$pkgdir/opt/appimages/gplates.AppImage" + install -Dm644 "gplates/gplates.AppDir/gplates.desktop" \ + "$pkgdir/usr/share/applications/gplates.desktop" + + # install wrapper in /usr/bin + install -Dm755 "gplates.sh" "$pkgdir/usr/bin/gplates" + +} diff --git a/gplates-appimage.yml b/gplates-appimage.yml new file mode 100644 index 000000000000..fd83aeb82879 --- /dev/null +++ b/gplates-appimage.yml @@ -0,0 +1,17 @@ +app: gplates +ingredients: + dist: xenial + sources: + - deb http://archive.ubuntu.com/ubuntu/ xenial main universe +script: + - # create desktop and image files + - cat > gplates.desktop <<EOF + - [Desktop Entry] + - Type=Application + - Name=GPlates + - Icon=gplates + - Exec=gplates + - Categories=Science;DataVisualization;Geography;Geoscience;Qt; + - StartupNotify=true + - EOF + - cp $(realpath ../gplates.png) . diff --git a/gplates.png b/gplates.png Binary files differnew file mode 100644 index 000000000000..28fa1d213e74 --- /dev/null +++ b/gplates.png diff --git a/gplates.sh b/gplates.sh new file mode 100644 index 000000000000..98bc4f479ae1 --- /dev/null +++ b/gplates.sh @@ -0,0 +1,2 @@ +#!/bin/sh +/opt/appimages/gplates.AppImage $@ |