blob: 5e9589670cef1454cbcd6943489b4e1281969fa0 (
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: Adam Goldsmith <contact@adamgoldsmith.name>
# Former Maintainer: Janosch Dobler <janosch.dobler [at} gmx [dot} de>
pkgname=write_stylus
pkgver=300.r469
pkgrel=1
pkgdesc="Write(orignal name) - A word processor for handwriting"
arch=(i686 x86_64)
url="http://www.styluslabs.com/"
license=('custom')
depends=(sdl2)
makedepends=(desktop-file-utils)
source=("${pkgname}-${pkgver}.tar.gz"::"http://www.styluslabs.com/write/write-latest.tar.gz"
"http://www.styluslabs.com/write/eula.docx")
sha256sums=('d5dcb7af86a4bde843c9b6779dc0b993406666c2ff2bd11062c75532d3d6a1c0'
'637c47c1843860a16f1ca87e2df5d72b4396ff23cefacf6244de95cdac23de6e')
noextract=("eula.docx")
pkgver() {
echo -n '300.'
strings "$srcdir/Write/Write" | grep -oP 'Write \Kr[0-9]+'
}
prepare() {
desktop-file-edit --set-key=Exec --set-value=/usr/bin/write_stylus "$srcdir/Write/Write.desktop"
desktop-file-edit --set-key=Icon --set-value=write_stylus "$srcdir/Write/Write.desktop"
}
package() {
install -Dm755 "$srcdir/Write/Write" "$pkgdir/usr/lib/write_stylus/Write"
install -m644 "$srcdir/Write/"{DroidSansFallback.ttf,Intro.svg,Roboto-Regular.ttf} "$pkgdir/usr/lib/write_stylus/"
install -dm755 "$pkgdir/usr/bin/"
ln -s /usr/lib/write_stylus/Write "$pkgdir/usr/bin/write_stylus"
install -Dm644 "$srcdir/eula.docx" "$pkgdir/usr/share/licenses/write_stylus/eula.docx"
install -Dm644 "$srcdir/Write/Write.desktop" "$pkgdir/usr/share/applications/Write.desktop"
install -Dm644 "$srcdir/Write/Write144x144.png" "$pkgdir/usr/share/pixmaps/write_stylus.png"
}
# vim:set ts=2 sw=2 et:
|