makedeb
Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files
Viewing /PKGBUILD
.
Click here to go back to the Git tree for obsidian-bin.
# Maintainer: hiddeninthesand <hiddeninthesand at protonmail dot com>
pkgname='obsidian-bin'
provides=('obsidian')
pkgver='1.1.15'
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')
license=('custom:Commercial')
url="https://obsidian.md/"
source=("https://github.com/obsidianmd/obsidian-releases/releases/download/v${pkgver}/obsidian-${pkgver}.tar.gz"
"obsidian.desktop"
"obsidian.png")
b2sums=('05d11720e88f45041cbdc3d3f9535e76e6497c682decb69493e3e7e623dcf8cfcf934f0fa498fc7869880be2c01b640dc3b0533e91b501d1286fb25cfcee6a14'
'0cd0095ba7a05c1183cf9e6b696a83114b026f62420792c60718dc61e6d15f4fb32a0a6903b3d1efce9bb9ada7c2f99b5cdd55ac90543f148989c94820b64ee6'
'523d52e93177dd615c18378757e8feeb74d1626c187fdccbe4f148c1997f039b9d5197c620a3aa881d25f20363bc2e00225e78a7dbca1cdf98952c42af5f189b')
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() {
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/"
}