blob: b4e3169020f4e1d3a15affacaa16b8bcda87cd67 (
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
|
# Maintainer: Mark Coolen
# Contributor: Dan Serban
pkgname=ostorybook
_pkgname=oStorybook
pkgver=6.00
pkgrel=2
pkgdesc="Open Source Novel Writing Software for Novelists, Authors and Creative Writers"
arch=(any)
url="http://ostorybook.tuxfamily.org/v5/index.php?lng=en"
license=(GPL)
depends=('java-runtime>8')
source=("https://download.tuxfamily.org/ostorybook/current/oStorybook-${pkgver}.zip")
sha256sums=('be759f5890f0c6030b9efa4f79b5c5c499a1c437b3cfa1819a2d5c31dff9f0d4')
options=('!strip')
package()
{
rm -f "${_pkgname}-5.*.zip"
install --mode 755 -D -T "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
install -D -t "${pkgdir}/usr/share/${pkgname}" ./*.*
#cp -r Assistant "${pkgdir}/usr/share/${pkgname}"
cp -r lib "${pkgdir}/usr/share/${pkgname}"
# Create Desktop file
install -d "${pkgdir}/usr/share/applications"
DESKTOPFILE="${pkgdir}/usr/share/applications/${_pkgname}.desktop"
echo "[Desktop Entry]" > "${DESKTOPFILE}"
echo "Name=${_pkgname}" >> "${DESKTOPFILE}"
echo "Comment=Open Source Novel Writing Software for Novelists, Authors and Creative Writers" >> "${DESKTOPFILE}"
echo "Exec=${_pkgname}" >> "${DESKTOPFILE}"
echo "Terminal=false" >> "${DESKTOPFILE}"
echo "Type=Application" >> "${DESKTOPFILE}"
echo "Icon=/usr/share/${pkgname}/${_pkgname}-icon.png" >> "${DESKTOPFILE}"
echo "Categories=Office;" >> "${DESKTOPFILE}"
}
|