blob: e9c6502e54df7c2c7e63af4f3894ec3eb143144c (
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
|
# Maintainer: Bombeuler <bombeuler@foxmail.com>
pkgname=writemonkey3
_pkgname=Writemonkey3
pkgver=3.3.0
_pkgver=3-3-0-jan2023
pkgrel=1
pkgdesc="Text Editor for Writers"
arch=('x86_64')
url="http://writemonkey.com/wm3/"
provides=("Writemonkey")
license=('proprietary')
source=(
"$pkgname-$pkgver.zip::http://writemonkey.com/wm3/$_pkgname-linux-64bit-v$_pkgver.zip"
"$pkgname.desktop"
)
noextract=("$pkgname-$pkgver.zip")
depends=(
libnotify
gtk2
# gconf
gcc
electron25-bin
)
makedepends=(
unzip
)
sha256sums=(
"78cfe853aabbacba38538d2fd6637e0ae6d6465c52988795dae711c13cdb61d6"
"cc60d97bb9dd206452fc19e64b835ad80370362c90247de6e987c43a5c60bf34"
)
prepare() {
echo " -> Extracting the $pkgname-$pkgver.zip"
unzip "$pkgname-$pkgver.zip" -d "$srcdir"
}
package() {
mkdir -p $pkgdir/opt/$pkgname
mv $srcdir/$pkgname/* $pkgdir/opt/$pkgname/
mkdir -p $pkgdir/usr/bin
ln -s /opt/$pkgname/nw $pkgdir/usr/bin/$pkgname
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 $pkgdir/opt/$pkgname/wmFavicon.png $pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png
install -Dm644 $pkgdir/opt/$pkgname/wm.ico $pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.ico
install -Dm644 $pkgdir/opt/$pkgname/wm3icon.png $pkgdir/usr/share/icons/hicolor/1024x1024/apps/$pkgname.png
}
|