makedeb


obsidian-bin 1.1.15-1


Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files

Click here to go back to the commit logs for obsidian-bin.

Commit:


Hash: 40af3cd886e9ffe9eda3f5783a840d78dcac7647

Message: Switched to TAR source

Diff


diff --git a/.SRCINFO b/.SRCINFO
index f6afabf..151efdb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,11 +2,12 @@ generated-by = makedeb-makepkg
 
 pkgbase = obsidian-bin
 	pkgdesc = Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files
-	pkgver = 0.13.31
+	pkgver = 0.14.2
 	pkgrel = 1
 	url = https://obsidian.md/
 	arch = x86_64
 	license = custom:Commercial
+	makedepends = imagemagick
 	depends = libgtk-3-0
 	depends = libnotify4
 	depends = libnss3
@@ -18,9 +19,11 @@ pkgbase = obsidian-bin
 	depends = libappindicator3-1
 	depends = libsecret-1-0
 	provides = obsidian
-	conflicts = obsidian
-	replaces = obsidian
-	source = https://github.com/obsidianmd/obsidian-releases/releases/download/v0.13.31/obsidian_0.13.31_amd64.deb
-	sha256sums = 3314ae8c91e34fe6146989b2eddeacf6ab56ccccfd2c8ad709b1494803af1bf4
+	source = https://github.com/obsidianmd/obsidian-releases/releases/download/v0.14.2/obsidian-0.14.2.tar.gz
+	source = obsidian.desktop
+	source = obsidian.png
+	sha256sums = 03ebaa4da657437b17b3cd8768469bd023e8bb3e4886d329f7dcafb9afb9f101
+	sha256sums = 754925a0032345aa1510c596ffcbd6de3e0b26581fe34176196e5c67ccbd9209
+	sha256sums = d1dd32c6e74beb3108af5813030389bcf5d67c2e6bdfe0038a1cb7df190d02f9
 
 pkgname = obsidian-bin
diff --git a/PKGBUILD b/PKGBUILD
index 04c1140..cd61187 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,51 @@
 # Maintainer: hiddeninthesand <hiddeninthesand at protonmail dot com>
 
-pkgname=obsidian-bin
+pkgname='obsidian-bin'
 provides=('obsidian')
-pkgver='0.13.31'
+pkgver='0.14.2'
 pkgrel='1'
 pkgdesc="Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files"
 arch=('x86_64')
+makedepends=('imagemagick')
 depends=('libgtk-3-0' 'libnotify4' 'libnss3' 'libxss1' 'libxtst6' 'xdg-utils' 'libatspi2.0-0' 'libuuid1' 'libappindicator3-1' 'libsecret-1-0')
-replaces=('obsidian')
-conflicts=('obsidian')
 license=('custom:Commercial')
 url="https://obsidian.md/"
 
-source=("https://github.com/obsidianmd/obsidian-releases/releases/download/v${pkgver}/obsidian_${pkgver}_amd64.deb")
-sha256sums=('3314ae8c91e34fe6146989b2eddeacf6ab56ccccfd2c8ad709b1494803af1bf4')
+source=("https://github.com/obsidianmd/obsidian-releases/releases/download/v${pkgver}/obsidian-${pkgver}.tar.gz"
+        "obsidian.desktop"
+        "obsidian.png")
+sha256sums=('03ebaa4da657437b17b3cd8768469bd023e8bb3e4886d329f7dcafb9afb9f101'
+            '754925a0032345aa1510c596ffcbd6de3e0b26581fe34176196e5c67ccbd9209'
+            'd1dd32c6e74beb3108af5813030389bcf5d67c2e6bdfe0038a1cb7df190d02f9')
+
+build() {
+    # please remember to put your icons in your tar releases
+    cd "${srcdir}"
+    mkdir -p "./icons/hicolor/16x16/apps/"
+    convert "./obsidian.png" -resize 16x16 "./icons/hicolor/16x16/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/32x32/apps/"
+    convert "./obsidian.png" -resize 32x32 "./icons/hicolor/32x32/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/48x48/apps/"
+    convert "./obsidian.png" -resize 48x48 "./icons/hicolor/48x48/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/64x64/apps/"
+    convert "./obsidian.png" -resize 64x64 "./icons/hicolor/64x64/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/128x128/apps/"
+    convert "./obsidian.png" -resize 128x128 "./icons/hicolor/128x128/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/256x256/apps/"
+    convert "./obsidian.png" -resize 256x256 "./icons/hicolor/256x256/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/512x512/apps/"
+    convert "./obsidian.png" -resize 512x512 "./icons/hicolor/512x512/apps/obsidian.png"
+    mkdir -p "./icons/hicolor/1024x1024/apps/"
+    cp "./obsidian.png" "./icons/hicolor/1024x1024/apps/obsidian.png"
+}
 
 package() {
-    # Extract data.tar.xz to pkgdir
-    msg2 "Extracting data.tar.xz..."
-    tar -xf 'data.tar.xz' -C "${pkgdir}"
+    mkdir -p "${pkgdir}/opt/Obsidian/"
+    mkdir -p "${pkgdir}/usr/share/applications/"
+    # moving the actual application to opt
+    cp -a "${srcdir}/obsidian-${pkgver}/." "${pkgdir}/opt/Obsidian/"
+    # moving the desktop file
+    cp "${srcdir}/obsidian.desktop" "${pkgdir}/usr/share/applications/obsidian.desktop"
+    # moving the icons
+    cp -a "${srcdir}/icons/" "${pkgdir}/usr/share/"
 }
diff --git a/obsidian.desktop b/obsidian.desktop
new file mode 100644
index 0000000..faf5696
--- /dev/null
+++ b/obsidian.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Obsidian
+Exec=/opt/Obsidian/obsidian %U
+Terminal=false
+Type=Application
+Icon=obsidian
+StartupWMClass=obsidian
+Comment=Obsidian
+MimeType=x-scheme-handler/obsidian;
+Categories=Office;
diff --git a/obsidian.png b/obsidian.png
new file mode 100644
index 0000000..270451f
Binary files /dev/null and b/obsidian.png differ