blob: 756b266bf155aa13cefd4b4f8e1e0033fb879007 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: Malacology <guoyizhang at malacology dot net>
# Contributor: Sergej Pupykin <sergej@p5n.pp.ru>
# Contributor: Fabio Lolix <fabio.loli@disroot.org>>
pkgname=free-delta
pkgver=3.3.0
pkgrel=1
pkgdesc="An Open Source System for Processing Taxonomic Descriptions"
arch=('x86_64')
url="http://freedelta.sourceforge.net/"
#url="https://www.delta-intkey.com/"
license=('GPL2')
depends=(gtk2 classic-delta)
makedepends=(lazarus imagemagick git)
source=("git+https://github.com/maurobio/freedelta.git#tag=v$pkgver"
"Free_Delta_Editor.desktop"
"${pkgver}.patch::https://github.com/maurobio/freedelta/compare/main...starsareintherose:freedelta:${pkgver}.patch"
"https://packages.lazarus-ide.org/SynFacilSyn.zip"
"https://packages.lazarus-ide.org/HtmlViewer.zip"
"https://packages.lazarus-ide.org/HistoryFiles.zip"
"git+https://github.com/skalogryz/richmemo.git")
sha256sums=('SKIP'
'df398bcf5f3ef5ae7bddd624e309f9b30188eb1200befc436acf11f4a8fcd7c9'
'f1016ae77daafcc54e7a5055bfbb08b019ded06036e2766d2dd3b650305dce25'
'7d7176cb08b546c6f7537032aba9fbca60c72e17cfc66dc320ebcbb8a239b03a'
'520f7ec155398c94a96d504453bcc6bfec08108c42e8b5db78c8d7b5187fa04c'
'56921e78696d12690f0123e742d92663706386e6342a46e96a0ed9a14cbecc92'
'SKIP')
prepare () {
cd $srcdir/freedelta
patch -N -i ${srcdir}/${pkgver}.patch
}
build () {
# depends
cd $srcdir/'SynFacilSyn 1.21'
lazbuild --lazarusdir=/usr/lib/lazarus *.lpk
cd $srcdir/HistoryFiles
lazbuild --lazarusdir=/usr/lib/lazarus *.lpk
cd $srcdir/HtmlViewer/package
lazbuild --lazarusdir=/usr/lib/lazarus *.lpk
cd $srcdir/richmemo
lazbuild --lazarusdir=/usr/lib/lazarus --ws=gtk2 *.lpk
# binary
cd $srcdir/freedelta
lazbuild --lazarusdir=/usr/lib/lazarus -r fde.lpi
# desktop png
convert "fde.ico" -thumbnail 256x256 -alpha on -background none -flatten "fde.png"
}
package() {
install -dDm755 "$pkgdir"/usr/{bin,share/$pkgname}
install -Dm 755 Free_Delta_Editor.desktop $pkgdir/usr/share/applications/Free_Delta_Editor.desktop
cd freedelta
for dire in languages vocabulary
do
cp -r $dire $pkgdir/usr/share/$pkgname/
done
install -Dm 755 fde $pkgdir/usr/share/$pkgname/fde
install -Dm 644 fde.png $pkgdir/usr/share/pixmaps/fde.png
install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
ln -s /usr/share/$pkgname/fde $pkgdir/usr/bin/fde
# add function of free-delta
for prog in dist key confor
do
ln -s /usr/bin/$prog $pkgdir/usr/share/$pkgname/$prog
done
}
|