blob: 68d9c782981231ef7b6fdb1d2ce4a96b801b6292 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Jaime Martínez Rincón <jaime@jamezrin.name>
pkgname=notion-app
pkgver="2.0.18"
pkgrel=1
pkgdesc="The all-in-one workspace for your notes and tasks"
arch=('x86_64' 'aarch64')
url="https://github.com/notion-enhancer/notion-repackaged"
license=('MIT')
depends=(
'c-ares'
'ffmpeg'
'gtk3'
'http-parser'
'libevent'
'libvpx'
'libxslt'
'libxss'
'minizip'
'nss'
're2'
'snappy'
'libnotify'
'libappindicator-gtk3'
)
makedepends=()
provides=('notion-app')
conflicts=('notion-app')
notion_repackaged_ver="2.0.18-1"
source_x86_64=("${url}/releases/download/v${notion_repackaged_ver}/notion-app-${notion_repackaged_ver}.pacman")
source_aarch64=("${url}/releases/download/v${notion_repackaged_ver}/notion-app-${notion_repackaged_ver}-aarch64.pacman")
sha256sums_x86_64=('f9266604ae38fb75ee49489ab9eb8c261c72b809f5023d2e1939e2bf0fff7c75')
sha256sums_aarch64=('c63d54090a5a6f49cb7f809ec0bc516b46beb7b2b5d81caf8862d5967692fd03')
install=${pkgname}.install
package() {
product_name="Notion"
package_name="notion-app"
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/opt/${product_name}"
cp -r "${srcdir}/opt/${product_name}" "${pkgdir}/opt/"
icons_dir_path="usr/share/icons/hicolor"
desktop_file_path="usr/share/applications/${package_name}.desktop"
for icon_size_name in $(ls ${srcdir}/${icons_dir_path}); do
icon_size_path="${icons_dir_path}/${icon_size_name}/apps"
install -d "${pkgdir}/${icon_size_path}"
install -m644 "${srcdir}/${icon_size_path}/${package_name}.png" \
"${pkgdir}/${icon_size_path}/${package_name}.png"
done
install -Dm644 "${srcdir}/${desktop_file_path}" "${pkgdir}/${desktop_file_path}"
}
|