mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
free-delta: compile from source
This commit is contained in:
parent
983fb21cfa
commit
724e4f7c5e
5 changed files with 202 additions and 22 deletions
11
BioArchLinux/free-delta/Free_Delta_Editor.desktop
Executable file
11
BioArchLinux/free-delta/Free_Delta_Editor.desktop
Executable file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Name=Free Delta Editor
|
||||
Version=1.0
|
||||
Exec=fde
|
||||
Comment=A software package for building taxonomic databases
|
||||
Icon=fde.png
|
||||
Type=Application
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Encoding=UTF-8
|
||||
Categories=Application;
|
|
@ -1,21 +1,57 @@
|
|||
# Maintainer: Malacology <guoyizhang at malacology dot net>
|
||||
# Contributor: Sergej Pupykin <sergej@p5n.pp.ru>
|
||||
# Contributor: FabioLolix
|
||||
|
||||
pkgname=free-delta
|
||||
pkgver=2.9.2
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
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)
|
||||
source=("https://sourceforge.net/projects/freedelta/files/freedelta/freedelta_${pkgver}_amd64.deb")
|
||||
sha256sums=('2391b7351e72d74db58ca050eef13883956759ecad681d1bdf5a37c54a0dad5e')
|
||||
|
||||
package() {
|
||||
install -dDm755 "$pkgdir"/usr/{bin,share/free-delta}
|
||||
|
||||
tar -p -xf data.tar.xz -C "${pkgdir}"
|
||||
chmod 755 -R ../pkg/${pkgname}/usr
|
||||
depends=(gtk2 classic-delta)
|
||||
makedepends=(lazarus imagemagick git)
|
||||
source=("git+https://github.com/maurobio/freedelta.git#tag=v$pkgver"
|
||||
"Free_Delta_Editor.desktop"
|
||||
"fde.patch")
|
||||
sha256sums=('SKIP'
|
||||
'51bc24fd50441993bf171da7074da692ef2ab8471b67a2294fb14c5073567f0c'
|
||||
'025d7782b3edffbebde90d709c4f70a28bac56dd5bfd3802d65afeec7dd1a05a')
|
||||
prepare () {
|
||||
cd $srcdir/freedelta
|
||||
patch -N -i ${srcdir}/fde.patch
|
||||
}
|
||||
build () {
|
||||
cd freedelta
|
||||
|
||||
# binary
|
||||
lazbuild -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
|
||||
}
|
||||
|
|
136
BioArchLinux/free-delta/fde.patch
Normal file
136
BioArchLinux/free-delta/fde.patch
Normal file
|
@ -0,0 +1,136 @@
|
|||
From: Sergej Pupykin <sergej@p5n.pp.ru>
|
||||
Date: Tues, 29 Nov 2022
|
||||
Subject: [PATCH] fix fde.lpi and main.pas
|
||||
|
||||
---
|
||||
|
||||
diff --git a/fde.lpi b/fde.lpi
|
||||
index 447c2e6..ec46b9a 100644
|
||||
--- a/fde.lpi
|
||||
+++ b/fde.lpi
|
||||
@@ -1,11 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG>
|
||||
<ProjectOptions>
|
||||
- <Version Value="11"/>
|
||||
+ <Version Value="12"/>
|
||||
<PathDelim Value="\"/>
|
||||
<General>
|
||||
+ <Flags>
|
||||
+ <CompatibilityMode Value="True"/>
|
||||
+ </Flags>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
- <MainUnit Value="0"/>
|
||||
<Title Value="FreeDelta Editor"/>
|
||||
<Scaled Value="True"/>
|
||||
<ResourceType Value="res"/>
|
||||
@@ -43,28 +45,31 @@
|
||||
<Mode0 Name="default"/>
|
||||
</Modes>
|
||||
</RunParams>
|
||||
- <RequiredPackages Count="7">
|
||||
+ <RequiredPackages Count="8">
|
||||
<Item1>
|
||||
- <PackageName Value="richmemopackage"/>
|
||||
+ <PackageName Value="synfacilsyn"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
- <PackageName Value="SynEdit"/>
|
||||
+ <PackageName Value="richmemopackage"/>
|
||||
</Item2>
|
||||
<Item3>
|
||||
- <PackageName Value="FrameViewer09"/>
|
||||
+ <PackageName Value="SynEdit"/>
|
||||
</Item3>
|
||||
<Item4>
|
||||
- <PackageName Value="TurboPowerIPro"/>
|
||||
+ <PackageName Value="FrameViewer09"/>
|
||||
</Item4>
|
||||
<Item5>
|
||||
- <PackageName Value="LazControls"/>
|
||||
+ <PackageName Value="TurboPowerIPro"/>
|
||||
</Item5>
|
||||
<Item6>
|
||||
- <PackageName Value="HistoryLazarus"/>
|
||||
+ <PackageName Value="LazControls"/>
|
||||
</Item6>
|
||||
<Item7>
|
||||
- <PackageName Value="LCL"/>
|
||||
+ <PackageName Value="HistoryLazarus"/>
|
||||
</Item7>
|
||||
+ <Item8>
|
||||
+ <PackageName Value="LCL"/>
|
||||
+ </Item8>
|
||||
</RequiredPackages>
|
||||
<Units Count="17">
|
||||
<Unit0>
|
||||
@@ -196,7 +201,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||
- <OtherUnitFiles Value="C:\lazarus\user\SynFacilSyn\"/>
|
||||
+ <OtherUnitFiles Value="C:\lazarus\user\SynFacilSyn"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Linking>
|
||||
@@ -210,20 +215,4 @@
|
||||
</Options>
|
||||
</Linking>
|
||||
</CompilerOptions>
|
||||
- <Debugging>
|
||||
- <Exceptions Count="4">
|
||||
- <Item1>
|
||||
- <Name Value="EAbort"/>
|
||||
- </Item1>
|
||||
- <Item2>
|
||||
- <Name Value="ECodetoolError"/>
|
||||
- </Item2>
|
||||
- <Item3>
|
||||
- <Name Value="EFOpenError"/>
|
||||
- </Item3>
|
||||
- <Item4>
|
||||
- <Name Value="EStringListError"/>
|
||||
- </Item4>
|
||||
- </Exceptions>
|
||||
- </Debugging>
|
||||
</CONFIG>
|
||||
diff --git a/main.pas b/main.pas
|
||||
index e6ee9d3..f885687 100644
|
||||
--- a/main.pas
|
||||
+++ b/main.pas
|
||||
@@ -1558,7 +1558,7 @@ begin
|
||||
sPath := GetAppConfigDir(False);
|
||||
IniFile := TIniFile.Create(sPath + 'fde.ini');
|
||||
sLang := IniFile.ReadString('Options', 'Language', 'en'); // First default is English
|
||||
- SetDefaultLang(sLang, 'languages', True);
|
||||
+ SetDefaultLang(sLang, 'languages', '', True);
|
||||
case sLang of
|
||||
'en':
|
||||
begin
|
||||
@@ -2525,7 +2525,7 @@ begin
|
||||
LanguageFrenchItem.Checked := False;
|
||||
sPath := GetAppConfigDir(False);
|
||||
IniFile := TIniFile.Create(sPath + 'fde.ini');
|
||||
- SetDefaultLang('en', 'language', True);
|
||||
+ SetDefaultLang('en', 'language', '', True);
|
||||
IniFile.WriteString('Options', 'Language', 'en');
|
||||
IniFile.Free;
|
||||
end;
|
||||
@@ -2541,7 +2541,7 @@ begin
|
||||
LanguageEnglishItem.Checked := False;
|
||||
sPath := GetAppConfigDir(False);
|
||||
IniFile := TIniFile.Create(sPath + 'fde.ini');
|
||||
- SetDefaultLang('fr', 'language', True);
|
||||
+ SetDefaultLang('fr', 'language', '', True);
|
||||
IniFile.WriteString('Options', 'Language', 'fr');
|
||||
IniFile.Free;
|
||||
end;
|
||||
@@ -2557,7 +2557,7 @@ begin
|
||||
LanguageFrenchItem.Checked := False;
|
||||
sPath := GetAppConfigDir(False);
|
||||
IniFile := TIniFile.Create(sPath + 'fde.ini');
|
||||
- SetDefaultLang('pt_br', 'language', True);
|
||||
+ SetDefaultLang('pt_br', 'language', '', True);
|
||||
IniFile.WriteString('Options', 'Language', 'pt_br');
|
||||
IniFile.Free;
|
||||
end;
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
def pre_build():
|
||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
||||
run_cmd(['updpkgsums'])
|
||||
|
||||
def post_build():
|
||||
git_add_files('PKGBUILD')
|
||||
git_commit()
|
||||
update_aur_repo()
|
|
@ -2,8 +2,16 @@ build_prefix: extra-x86_64
|
|||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
pre_build_script: |
|
||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
||||
run_cmd(['updpkgsums'])
|
||||
post_build_script: |
|
||||
git_add_files('PKGBUILD')
|
||||
git_commit()
|
||||
update_aur_repo()
|
||||
update_on:
|
||||
- regex: freedelta_(\d+.\d+.\d+)_amd64.deb
|
||||
source: regex
|
||||
url: https://sourceforge.net/projects/freedelta/files/freedelta/
|
||||
|
||||
repo_depends:
|
||||
- classic-delta
|
||||
|
|
Loading…
Add table
Reference in a new issue