Browse Source

Move obsidian from AUR

Sven-Hendrik Haase 3 năm trước cách đây
commit
5ad704bd29
4 tập tin đã thay đổi với 233 bổ sung0 xóa
  1. 50 0
      PKGBUILD
  2. 170 0
      Packaging permission from Arch Linux.eml
  3. 2 0
      obsidian
  4. 11 0
      obsidian.desktop

+ 50 - 0
PKGBUILD

@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
+# Contributor: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>
+# Contributor: Xuanwo <xuanwo@archlinuxcn.org>
+
+pkgname=obsidian
+pkgver=0.13.23
+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')
+url="https://obsidian.md/"
+license=('custom:Commercial')
+depends=('zlib' 'hicolor-icon-theme' 'fuse' 'electron13')
+makedepends=('asar')
+options=(!strip)
+source=(
+    "${pkgname}"
+    "${pkgname}.desktop"
+    "https://github.com/obsidianmd/obsidian-releases/releases/download/v${pkgver}/obsidian-${pkgver}.tar.gz"
+)
+sha256sums=(
+    '5f4699e03045f68932e976727a746342f971eddb77fe5a31d8d2c4084034ed5f'
+    '1153b7f4ce342663f766efa38dc07677aec13f7f619afef1f9b8e2b1f1849fe6'
+    '0c393639b516e40b5866ed0eb010373b9abd7ba143193389615b2e9fb7711db2'
+)
+
+prepare() {
+    cd "$srcdir"
+    asar ef "${pkgname}-${pkgver}"/resources/obsidian.asar icon.png
+}
+
+package() {
+    # Go to source directory
+    cd "$srcdir"
+
+    # Create directories for installation
+    install -dm0755 "$pkgdir"/usr/bin
+    install -dm0755 "$pkgdir"/usr/lib/obsidian
+
+    # Install executable file
+    install -Dm755 "$pkgname" "$pkgdir"/usr/bin/
+    # Install desktop file
+    install -Dm644 "$pkgname".desktop -t "$pkgdir"/usr/share/applications/
+    install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/obsidian.png
+    # Most of the release package is electron, but we use system's default one
+    # So strip away asar packages and put them to /usr/lib/
+    cd "${pkgname}-${pkgver}"/resources/
+    find . -type d -exec install -d {,"$pkgdir"/usr/lib/obsidian/}{} \;
+    find . -type f -exec install -D {,"$pkgdir"/usr/lib/obsidian/}{} \;
+}
+

+ 170 - 0
Packaging permission from Arch Linux.eml

@@ -0,0 +1,170 @@
+Delivered-To: svenstaro@gmail.com
+Received: by 2002:a0c:f2c7:0:0:0:0:0 with SMTP id c7csp4600665qvm;
+        Sat, 5 Feb 2022 09:31:04 -0800 (PST)
+X-Google-Smtp-Source: ABdhPJx7afb3jhA9LYceV82XoACRYW56Pd3jLxkYlxva+I4bLAm8oiBr8sN1HiiLEtgMzya7p2zN
+X-Received: by 2002:a81:1b4e:: with SMTP id b75mr4255710ywb.295.1644082264375;
+        Sat, 05 Feb 2022 09:31:04 -0800 (PST)
+ARC-Seal: i=1; a=rsa-sha256; t=1644082264; cv=none;
+        d=google.com; s=arc-20160816;
+        b=NMKnFh69w58xVQ04+1qJ7YYni9zVkDf+0F1k94rIVJ61dKuhGrnbDawYs0Qqy/p1NT
+         8jP0QRJ1oQbW5I2BN7gaz1ipq8+YZOdTXojjquUrJKsmUG2LVU13uXf9cH2F02AXE+R0
+         70Ap2b3HvIVlpk2MMsQ6Ar5gaKOj8gn/s95euHIkyzQL3KO2CnSev9CI1wbM0Vn40yBa
+         xekPELdjBmDj+5zlAWyS5zA5D0D+898OHXKWgippoyhwumvj/bjmI5qfEcZ2S9OexUMw
+         iIhQd7yk+CNVvk/uT7vPJSPN4cvCoDc9TGWIhpMaeSfiDoGkh/10gB9aOKB1FP0zq0Gj
+         XDsA==
+ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
+        h=mime-version:date:message-id:references:in-reply-to:from:subject:to
+         :sender:dkim-signature:dkim-signature;
+        bh=kooIAKFZGOaMrf4076kmS2r2OxbT/ZfwoOCwzV4XrRU=;
+        b=Ius8cId6nERN2U+wd4CaQftijKd1FlgHnywbFHCLXsR0FK3vu7F19DPr+uS+zauseO
+         ISqk9wMgSC4oQ8CWZEdG+0RHh2I5zBqi9hm3CAblJDvFTfOtYUdGKfvp0gftb287F5lQ
+         66FB4rdbSgD/V0pNd+O/Zn2NNGmzQtew+zhpYW/KV8drmx6qk7SD6WP1qtTfG9wWUSLb
+         6f++2/CGoiNPJcXZGEw7fl3UN3YafdRXzSwZg6EtmeS/BWZkuqSGIVnEorvVkfuCCPLM
+         89AO3M5/1t0b+1qZH903rDt1BBBenzFQz3E+hZI9/5/vofjP3CZP0Ep8Pl4LilN6j3+f
+         5Adg==
+ARC-Authentication-Results: i=1; mx.google.com;
+       dkim=pass header.i=@obsidian.md header.s=pic header.b=TfDvnBth;
+       dkim=pass header.i=@mailgun.org header.s=mg header.b=gy2KcFLz;
+       spf=pass (google.com: domain of bounce+6be1a3.a48fd0-svenstaro=gmail.com@obsidian.md designates 69.72.42.10 as permitted sender) smtp.mailfrom="bounce+6be1a3.a48fd0-svenstaro=gmail.com@obsidian.md";
+       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=obsidian.md
+Return-Path: <bounce+6be1a3.a48fd0-svenstaro=gmail.com@obsidian.md>
+Received: from m42-10.mailgun.net (m42-10.mailgun.net. [69.72.42.10])
+        by mx.google.com with UTF8SMTPS id q64si3879499ywe.274.2022.02.05.09.31.04
+        for <svenstaro@gmail.com>
+        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
+        Sat, 05 Feb 2022 09:31:04 -0800 (PST)
+Received-SPF: pass (google.com: domain of bounce+6be1a3.a48fd0-svenstaro=gmail.com@obsidian.md designates 69.72.42.10 as permitted sender) client-ip=69.72.42.10;
+Authentication-Results: mx.google.com;
+       dkim=pass header.i=@obsidian.md header.s=pic header.b=TfDvnBth;
+       dkim=pass header.i=@mailgun.org header.s=mg header.b=gy2KcFLz;
+       spf=pass (google.com: domain of bounce+6be1a3.a48fd0-svenstaro=gmail.com@obsidian.md designates 69.72.42.10 as permitted sender) smtp.mailfrom="bounce+6be1a3.a48fd0-svenstaro=gmail.com@obsidian.md";
+       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=obsidian.md
+DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=obsidian.md; q=dns/txt; s=pic;
+ t=1644082264; h=MIME-Version: Content-Type: Date: Message-Id:
+ References: In-Reply-To: From: Subject: To: Sender: X-Feedback-Id;
+ bh=kooIAKFZGOaMrf4076kmS2r2OxbT/ZfwoOCwzV4XrRU=; b=TfDvnBthJ6QYwcjUHr8Kmm6n/1y5rEFuD+wG8GOtmtcgETM6n1XKILy6KRCL3dlG1qbWE4nn
+ jCdwTfGaefQGU49d7yhScO9GsQtRTlQYrIMgyhYk60fbMC7TAsDqfJE1fTW9USKWbJ389kBg
+ YmoFibsIID0FH0zEjshOOQbs8rUw3ViAGJsPomD9sOcJO3cucZj6BDhD6uBi9KVY5YK9nFG8
+ KLtCHETsXZ8IfsZzHVmARe9P5eJ11Ui5h1uh+cJhNc6tegElVA8tj8Ca1SU4VzRcmP6Oolmu
+ nY9HVZnP9vxSoUbKN99NVzaDxxkN7wBHZ/OHQCAMUUhtKmxQd5BW2w==
+DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mailgun.org; q=dns/txt; s=mg;
+ t=1644082264; h=MIME-Version: Content-Type: Date: Message-Id:
+ References: In-Reply-To: From: Subject: To: Sender: X-Feedback-Id;
+ bh=kooIAKFZGOaMrf4076kmS2r2OxbT/ZfwoOCwzV4XrRU=; b=gy2KcFLzG29+7O74JVNenxjpqd2pllK8yHvhkFg7zs6yOKRvlZ8ZpQW8Ev3/NeD/OqsAwQhH
+ J+WzBh4ifMn/V3jsqWvPUlSDCix2CIi0PCe+leiGtwjKEWKCFDYj4Ma17LoVfcYZpc6vDamn
+ qZpw6URih1GIG+TXFi2Dk7ZbTgM=
+X-Feedback-Id: 5ec4495cba4064eef108c41a:mailgun
+X-Mailgun-Sending-Ip: 69.72.42.10
+X-Mailgun-Sid: WyI1ZDI1YiIsICJzdmVuc3Rhcm9AZ21haWwuY29tIiwgImE0OGZkMCJd
+Received: from pconsumer-0951d87f4e933cd0f (nat-out-c.helpscout.net
+ [52.1.160.211]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id
+ 61feb4574bd957b9678c8c45 (version=TLS1.2,
+ cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 05 Feb 2022 17:31:03
+ GMT
+Sender: support@obsidian.md
+To: Sven-Hendrik Haase <svenstaro@gmail.com>
+Subject: Re: Packaging permission from Arch Linux
+X-Hs-Format: 2
+From: Obsidian Support <support@obsidian.md>
+X-Msg-Context: HS-1-225237-1772024388-5232486156
+X-Hs-Cid: 58169
+X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@helpscout.net
+In-Reply-To: <CANJKy-FvMKW-bChoAn5WfY65ji3GHY52rX2GJfWyd8jkfRms9g@mail.gmail.com>
+References: <CANJKy-FvMKW-bChoAn5WfY65ji3GHY52rX2GJfWyd8jkfRms9g@mail.gmail.com> <reply-58169-1772024388-5222166749-1643817595-1672622620@helpscout.net>
+Message-Id: <reply-58169-1772024388-5232486156-1644082266-1551509703@helpscout.net>
+Date: Sat, 05 Feb 2022 17:31:06 +0000
+Content-Type: multipart/alternative;
+ boundary="=_a6d02aea29713c4a1b26e4c90564891f"
+MIME-Version: 1.0
+
+--=_a6d02aea29713c4a1b26e4c90564891f
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: quoted-printable
+
+-- Please reply above this line --=0A=0A=0A            Hi Sven-Hendrik,=
+=0A=0AI see. We hereby give you permission to distribute Obsidian, thank=
+ you=0Afor your consideration.=0A--=0AErica Xu=0Asupport@obsidian.md=0A=
+=0A                                =0A                    =0A          =
+          =0A        > On Wed, Feb 2, 2022 at 7:40 PM EST, Sven-Hendrik=
+ Haase &lt;svenstaro@gmail.com&gt; wrote:=0A> =0A> Hello,=0A> =0A> Yes,=
+ I'm an official Arch Linux Developer and Packager. The official=0A> rep=
+ositories contain binary packages that we pre-package and sign for=0A> u=
+sers. AUR stands for Arch Linux User Repository and it contains only=0A>=
+ "untrusted" packages generated by users.=0A> =0A> In contrast, I'd like=
+ to get permission to be able to distribute=0A> Obsidian through our off=
+icial and trusted channels in a pre-packaged=0A> form.=0A> =0A> Many reg=
+ards,=0A> Sven-Hendrik Haase=0A> Arch Linux Developer=0A> =0A> =0A>> On=
+ Wed, Feb 2, 2022 at 10:59 AM EST, Obsidian Support &lt;support@obsidian=
+.md&gt; wrote:=0A>>=0A>> Hi Sven-Hendrik,=0A>>=0A>> This is only current=
+ly known AUR distrubtion:=0A>> https://aur.archlinux.org/packages/obsidi=
+an/ [1]=0A>>=0A>> Do you want to start a different one?=0A>>=0A>> Links:=
+=0A>> ------=0A>> [1] https://aur.archlinux.org/packages/obsidian/=0A>>=
+=0A>> --=0A>> Erica Xu=0A>> support@obsidian.md=0A>>=0A>>=0A>>=0A>>> On=
+ Sat, Jan 29, 2022 at 5:53 PM EST, Sven-Hendrik Haase &lt;svenstaro@gmai=
+l.com&gt; wrote:=0A>>>=0A>>> Hello,=0A>>> I'm a developer and package ma=
+intainer for Arch Linux, a hobbyist-run=0A>>> non-commercial Linux distr=
+ibution. I really like Obsidian and wanted=0A>>> to ask you for permissi=
+on to distribute it in Arch Linux. I'll leave=0A>>> any licence informat=
+ion untouched but I probably won't use your=0A>>> version of Electron, o=
+pting to use our own Electron if that's fine=0A>>> with you.=0A>>> Many=
+ regards, Sven-Hendrik Haase Arch Linux Developer=0A>>>=0A>>>=0A>>>=0A>>=
+>=0A>>=0A> =0A
+
+--=_a6d02aea29713c4a1b26e4c90564891f
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: quoted-printable
+
+<html lang=3D"en">=0A<head>=0A    <meta content=3D"text/html; charset=3D=
+utf-8" http-equiv=3D"Content-Type">=0A</head>=0A<body bgcolor=3D"#ffffff=
+">=0A<div id=3D"hsReplyAbove" class=3D"hsReplyAbove">=0A    <div class=
+=3D"kickstarter-compatible" style=3D"font-family:sans-serif;">=0A      =
+  =0A                        <div>Hi Sven-Hendrik,<br /><br />I see. We=
+ hereby give you permission to distribute Obsidian, thank you for your c=
+onsideration.</div><br>=0A        <br>--<br>Erica Xu<br>support@obsidian=
+.md<br>=0A                            </div>=0A        <span height=3D"0=
+" style=3D"font-size: 0px; height:0px; line-height: 0px; color:#ffffff;"=
+ id=3D"hsContentRef">{#HS:1772024388-24117#}</span>=0A        <img src=
+=3D"https://secure.helpscout.net/notification/convo/read/1772024388/5232=
+486156/" alt=3D""/>    <br>=0A</div>=0A=0A<div class=3D"gmail_quote" sty=
+le=3D"font-family:sans-serif;">=0A                                     =
+                                   <div class=3D"gmail_quote" style=3D"f=
+ont-family:sans-serif;">=0A=09On Wed, Feb 2, 2022 at 7:40 PM EST, Sven-H=
+endrik Haase &lt;svenstaro@gmail.com&gt; wrote:=0A<blockquote type=3D"ci=
+te" class=3D"gmail_quote" style=3D"margin: 0 0 0 .8ex; border-left:1px s=
+olid #cccccc; padding-left: 1ex;">=0A    <div style=3D"font-family:sans-=
+serif;">=0A                <div>Hello,<br>=0A<br>=0AYes, I'm an official=
+ Arch Linux Developer and Packager. The official repositories contain bi=
+nary packages that we pre-package and sign for users. AUR stands for Arc=
+h Linux User Repository and it contains only "untrusted" packages genera=
+ted by users.<br>=0A<br>=0AIn contrast, I'd like to get permission to be=
+ able to distribute Obsidian through our official and trusted channels i=
+n a pre-packaged form.<br>=0A<br>=0AMany regards,<br>=0ASven-Hendrik Haa=
+se<br>=0AArch Linux Developer</div>=0A        <br>=0A                  =
+              <div class=3D"gmail_quote" style=3D"font-family:sans-serif=
+;">=0A=09On Wed, Feb 2, 2022 at 10:59 AM EST, Obsidian Support &lt;suppo=
+rt@obsidian.md&gt; wrote:=0A<blockquote type=3D"cite" class=3D"gmail_quo=
+te" style=3D"margin: 0 0 0 .8ex; border-left:1px solid #cccccc; padding-=
+left: 1ex;">=0A    <div style=3D"font-family:sans-serif;">=0A          =
+      <div>Hi Sven-Hendrik,<br /><br />This is only currently known AUR=
+ distrubtion: <a href=3D"https://aur.archlinux.org/packages/obsidian/">h=
+ttps://aur.archlinux.org/packages/obsidian/</a><br /><br />Do you want t=
+o start a different one?</div><br>=0A        <br>--<br>Erica Xu<br>suppo=
+rt@obsidian.md=0A                                <div class=3D"gmail_quo=
+te" style=3D"font-family:sans-serif;">=0A=09On Sat, Jan 29, 2022 at 5:53=
+ PM EST, Sven-Hendrik Haase &lt;svenstaro@gmail.com&gt; wrote:=0A<blockq=
+uote type=3D"cite" class=3D"gmail_quote" style=3D"margin: 0 0 0 .8ex; bo=
+rder-left:1px solid #cccccc; padding-left: 1ex;">=0A    <div style=3D"fo=
+nt-family:sans-serif;">=0A                <div><div dir=3D"ltr">=0A<div>=
+Hello,</div>=0A<div><br></div>=0A<div>I'm a developer and package mainta=
+iner for Arch Linux, a hobbyist-run non-commercial Linux distribution. I=
+ really like Obsidian and wanted to ask you for permission to distribute=
+ it in Arch Linux. I'll leave any licence information untouched but I pr=
+obably won't use your version of Electron, opting to use our own Electro=
+n if that's fine with you.</div>=0A<div><br></div>=0A<div>Many regards,<=
+/div>=0A<div>Sven-Hendrik Haase</div>=0A<div>Arch Linux Developer<br></d=
+iv>=0A</div></div>=0A        <br>=0A                            </div>=
+=0A</blockquote>=0A=0A</div>=0A            </div>=0A</blockquote>=0A=0A<=
+/div>=0A            </div>=0A</blockquote>=0A=0A</div>=0A</div>=0A</body=
+>=0A</html>=0A
+
+--=_a6d02aea29713c4a1b26e4c90564891f--

+ 2 - 0
obsidian

@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /bin/electron13 /usr/lib/obsidian/app.asar "$@"

+ 11 - 0
obsidian.desktop

@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Obsidian
+Exec=/usr/bin/obsidian %U
+Terminal=false
+Type=Application
+Icon=obsidian
+StartupWMClass=obsidian
+X-AppImage-Version=0.12.5
+Comment=Obsidian
+MimeType=x-scheme-handler/obsidian;
+Categories=Office;