blob: 60b5ec308dd7298590e9e70fc2ef182cc54f1f01 (
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
|
# Maintainer: remanifest
# Previous Maintainer: Cole Gerdemann <aur@corvettecole.com>
# Previous Maintainer: Emanuele 'Lele aka eldios' Calo' <emanuele.lele.calo@gmail.com>
# Previous Maintainer: Rocka <i at Rocka dot me>
pkgname=p3x-onenote
pkgver=2024.10.121
pkgrel=1
pkgdesc="Linux Electron Onenote - A Linux compatible version of OneNote"
arch=('any')
projecthost="https://github.com"
developer="patrikx3"
repo="onenote"
url="$projecthost/$developer/$repo"
tarballpath="archive/refs/tags"
license=('MIT')
depends=('electron')
makedepends=('npm')
source=("$url/$tarballpath/v${pkgver//_/-}.tar.gz"
"p3x-$repo.sh"
"p3x-$repo.desktop")
sha256sums=('0c5228bc76b10cf3480826c3092d8e3570fcac5873f50265acc3e7964fb6b164'
'97aca184d656b8021ce43d524d9de91f014c838372356844c845a531f8ab2b9f'
'9bbb2f84f401a4da62ffe7f533aa0b149921f3f88fec7f470c4d4b5fcf63f331')
build() {
cd "$srcdir/$repo-${pkgver//_/-}"
npm_config_cache="$srcdir/npm_cache" npm install --production --ignore-scripts --no-shrinkwrap
}
package() {
mkdir -p "$pkgdir/usr/lib/$pkgname"
cp -r "$srcdir/$repo-${pkgver//_/-}/"{node_modules,package.json,src} "$pkgdir/usr/lib/$pkgname/"
install -Dm644 "$srcdir/$repo-${pkgver//_/-}/LICENSE" "$pkgdir/usr/share/licenses/p3x-$repo/LICENSE"
install -Dm755 "$srcdir/p3x-$repo.sh" "$pkgdir/usr/bin/p3x-$repo"
install -Dm644 "$srcdir/p3x-$repo.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 "$srcdir/$repo-${pkgver//_/-}/artifacts/$repo-icon-2018/$repo-icon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
install -Dm644 "$srcdir/$repo-${pkgver//_/-}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|