blob: 4feb71d9720dd63f5be0b619cd8045e2caa89914 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Co-Maintainer: tee <teeaur at duck dot com>
_pkgname=beaver-notes
pkgname=$_pkgname-bin
pkgver=3.7.0
pkgrel=1
pkgdesc="Your Personal Note-Taking Haven for Privacy and Efficiency (binary release)"
url="https://github.com/Daniele-rolli/Beaver-Notes"
license=('MIT')
arch=('x86_64' 'aarch64')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$url/raw/3.6.0/LICENSE")
source_aarch64=("$url/releases/download/$pkgver/Beaver-notes-$pkgver.aarch64.rpm")
source_x86_64=("$url/releases/download/$pkgver/Beaver-notes-$pkgver.x86_64.rpm")
sha256sums=('593ed481f41652b46705e544226e0b58ffc046138f6a34777a0092e8d1f54b1d')
sha256sums_aarch64=('eb3e959eecd15484ef08b7fdee7b3a333768c03beb443350cc001755a4107d4c')
sha256sums_x86_64=('eecf7d3ead21d855d48b1c7945cd18cd3ac787f0cbc9c5410b8fefd24212605a')
prepare() {
# Edit the shortcut
mv usr/share/applications/$_pkgname.desktop "$srcdir"
sed -i -E "s|Name=Beaver-notes|Name=Beaver Notes|g" $_pkgname.desktop
sed -i -E "s|StartupWMClass=Beaver-notes|StartupWMClass=Beaver Notes|g" $_pkgname.desktop
}
package() {
# Create a directory
mkdir -p "$pkgdir/usr/bin"
# Install
mv opt "$pkgdir"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname"
for i in 16 32 48 64 128 256 512; do
install -Dm644 usr/share/icons/hicolor/${i}x${i}/apps/$_pkgname.png -t "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps"
done
install -Dm644 $_pkgname.desktop -t "$pkgdir/usr/share/applications"
ln -s /opt/Beaver-notes/$_pkgname "$pkgdir/usr/bin"
}
|