blob: 44cae4e2c57bb62bbcd399fe1f973fcfff4a8369 (
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
|
# Maintainer: zhullyb <5435486@qq.com>
pkgname=purewriter-desktop-bin
pkgver=1.9.0
pkgrel=1
pkgdesc="Never loss content editor & Markdown"
arch=('x86_64')
url="https://writer.drakeet.com/desktop"
license=('Custom')
depends=('jre11-openjdk')
conflicts=('purewriter-desktop')
replaces=('purewriter-desktop')
source=("https://github.com/PureWriter/desktop/releases/download/$pkgver/PureWriter-$pkgver-Linux-amd64.deb"
'purewriter'
'purewriter.png'
'purewriter.desktop')
md5sums=('55ae4c69a50eeb0beb805bf4ce575a21'
'41f0e2a47a315ff6905b8456eb204f7b'
'd24432d9cbba30b03c9f372405166ed9'
'43d078956e3f3a981329e6233747a078')
prepare(){
cd ${srcdir}
tar -Jxvf data.tar.xz -C "${srcdir}"
}
package() {
mkdir -p $pkgdir/usr/share/java/purewriter
mv $srcdir/opt/pure-writer/lib/app/app.so $pkgdir/usr/share/java/purewriter/
install -Dm755 purewriter $pkgdir/usr/bin/purewriter
install -Dm644 purewriter.png "${pkgdir}"/usr/share/icons/hicolor/512x512/apps/purewriter.png
install -Dm644 purewriter.desktop $pkgdir/usr/share/applications/purewriter.desktop
}
|