blob: 3d264bec501ef974cc894394d23bc18fb430ae43 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=sticky-notes
pkgver=0.1.5
pkgrel=1
pkgdesc="A simple sticky notes app"
arch=('any')
url="https://github.com/vixalien/sticky"
license=('MIT')
depends=('gjs' 'libadwaita')
makedepends=('git' 'gobject-introspection' 'meson' 'yarn')
checkdepends=('appstream-glib')
_commit=231b87779dc505ab54b39efd04ebfe0a94c31b5d # tags/v0.1.5^0
source=("git+https://github.com/vixalien/sticky.git#commit=$_commit"
'git+https://gitlab.gnome.org/BrainBlasted/gi-typescript-definitions.git')
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/sticky"
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd "$srcdir/sticky"
git submodule init
git config submodule.gi-types.url "$srcdir/gi-typescript-definitions"
git -c protocol.file.allow=always submodule update
# Correct version
sed -i 's/0.1.1/0.1.5/g' meson.build
}
build() {
yarn config set cache-folder "$srcdir/yarn-cache"
yarn install
arch-meson sticky build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package() {
meson install -C build --destdir "$pkgdir"
cd "$srcdir/sticky"
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
ln -s /usr/bin/com.vixalien.sticky "$pkgdir/usr/bin/$pkgname"
}
|