summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadoslaw Mejer2019-11-21 09:28:41 +0100
committerRadoslaw Mejer2019-11-21 09:30:40 +0100
commit46f9c17253bef34d474d1db85216cc952f110d3a (patch)
treef7e68a0d940311fc94e40a3e16fb0e8d80408966
downloadaur-46f9c17253bef34d474d1db85216cc952f110d3a.tar.gz
Add files
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore7
-rw-r--r--Makefile5
-rw-r--r--PKGBUILD34
-rw-r--r--stoplight-studio.desktop9
5 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2ca53b5c859
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = stoplight-studio-appimage
+ pkgdesc = The modern editor for API Architects and Technical Writers.
+ pkgver = 1.5.0
+ pkgrel = 1
+ url = https://odio.io/
+ arch = x86_64
+ license = custom
+ provides = station
+ conflicts = station
+ options = !strip
+ source = https://github.com/stoplightio/studio/releases/download/v1.5.0/stoplight-studio-linux-x86_64.AppImage
+ source = stoplight-studio.desktop
+ sha256sums = e8955f0ddd5ad6987202aeafe589cc5ad96b11ecab58171530157c1c4df93a58
+ sha256sums = SKIP
+
+pkgname = stoplight-studio-appimage
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f470273c095
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!Makefile
+!*.patch
+!stoplight-studio.desktop
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..a1451de8802
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+.PHONY: all
+all: .SRCINFO
+
+.SRCINFO: PKGBUILD
+ makepkg --printsrcinfo > .SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a81e70f547
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Radoslaw Mejer <radmen @ radmen.info>
+
+pkgname=stoplight-studio-appimage
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="The modern editor for API Architects and Technical Writers."
+arch=('x86_64')
+url='https://stoplight.io/studio/'
+license=('custom')
+source=(
+ "https://github.com/stoplightio/studio/releases/download/v${pkgver}/stoplight-studio-linux-x86_64.AppImage"
+ "stoplight-studio.desktop"
+)
+sha256sums=(
+ "e8955f0ddd5ad6987202aeafe589cc5ad96b11ecab58171530157c1c4df93a58"
+ "SKIP"
+)
+options=(!strip)
+_filename="./stoplight-studio-linux-${arch}.AppImage"
+
+prepare() {
+ cd "${srcdir}"
+ chmod +x ${_filename}
+ ${_filename} --appimage-extract
+}
+
+package() {
+ install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/stoplight-studio.AppImage"
+
+ install -dm755 "${pkgdir}/usr/share/"
+ cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
+
+ install -Dm644 "${srcdir}/stoplight-studio.desktop" "${pkgdir}/usr/share/applications/stoplight-studio.desktop"
+}
diff --git a/stoplight-studio.desktop b/stoplight-studio.desktop
new file mode 100644
index 00000000000..effbf901198
--- /dev/null
+++ b/stoplight-studio.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Stoplight Studio
+Comment=The modern editor for API Architects and Technical Writers
+Exec=/opt/appimages/stoplight-studio.AppImage
+Icon=stoplight-studio
+Terminal=false
+StartupNotify=false
+Categories=Application;Development;TextEditor;