summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph DiGiovanni2023-11-29 02:07:43 -0500
committerJoseph DiGiovanni2023-11-29 02:07:43 -0500
commit1daa33deacba1b08e9e8c1dff652d16d29736394 (patch)
treec4923aef16226869f03ba17c776f2170efd334d0
parentdaefab2d2061d74e0f261265845a69e14b665651 (diff)
downloadaur-1daa33deacba1b08e9e8c1dff652d16d29736394.tar.gz
Add desktop entry
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD14
-rw-r--r--crocotile3d.desktop10
-rw-r--r--icon.pngbin0 -> 3531 bytes
4 files changed, 26 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9f1f6fb2ef09..53839b9e0f83 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,15 @@
pkgbase = crocotile3d
pkgdesc = Tile-based 3D modeling application
pkgver = 2.2.6
- pkgrel = 1
+ pkgrel = 2
arch = x86_64
license = Unknown
options = !strip
source = https://jdigi.net/AUR/Crocotile3D/Crocotile3D_v2.2.6_linux64.tar.gz
+ source = crocotile3d.desktop
+ source = icon.png
sha256sums = d3c7fedb7b803902e85b06cf2b91851e9e6170a6eb6f4a3265c4d59355c613fc
+ sha256sums = SKIP
+ sha256sums = SKIP
pkgname = crocotile3d
diff --git a/PKGBUILD b/PKGBUILD
index 29ab2c52ce6a..51c2ebba94e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,29 @@
pkgname=crocotile3d
pkgver=2.2.6
-pkgrel=1
+pkgrel=2
pkgdesc='Tile-based 3D modeling application'
arch=('x86_64')
license=('Unknown')
options=(!strip)
-source=("https://jdigi.net/AUR/Crocotile3D/Crocotile3D_v${pkgver}_linux64.tar.gz")
-sha256sums=('d3c7fedb7b803902e85b06cf2b91851e9e6170a6eb6f4a3265c4d59355c613fc')
+source=("https://jdigi.net/AUR/Crocotile3D/Crocotile3D_v${pkgver}_linux64.tar.gz" "crocotile3d.desktop" "icon.png")
+sha256sums=('d3c7fedb7b803902e85b06cf2b91851e9e6170a6eb6f4a3265c4d59355c613fc'
+ SKIP
+ SKIP)
install_location='/usr/share'
package() {
+ # Install program
install -d "${pkgdir}${install_location}/${pkgname}"
cp -ar Crocotile3D_v${pkgver}_linux64/* "${pkgdir}${install_location}/${pkgname}/"
chmod -R 755 "${pkgdir}${install_location}/${pkgname}"
+ # Symlink executable
mkdir -p "${pkgdir}/usr/bin"
ln -s "${install_location}/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+ # Install desktop entry
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/crocotile3d.png"
}
diff --git a/crocotile3d.desktop b/crocotile3d.desktop
new file mode 100644
index 000000000000..e51082c0e5e3
--- /dev/null
+++ b/crocotile3d.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Crocotile 3D
+Comment=Tile-based
+Exec=crocotile3d
+Icon=crocotile3d
+Terminal=false
+StartupNotify=false
+Categories=Application;
diff --git a/icon.png b/icon.png
new file mode 100644
index 000000000000..e511b84295cf
--- /dev/null
+++ b/icon.png
Binary files differ