mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
mesquite: build from source
This commit is contained in:
parent
03081baac6
commit
16d3828943
4 changed files with 61 additions and 37 deletions
|
@ -3,38 +3,79 @@
|
||||||
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
|
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
|
||||||
# Contributor: Mick Elliot <micke at sfu dot ca>
|
# Contributor: Mick Elliot <micke at sfu dot ca>
|
||||||
|
|
||||||
pkgname=mesquite
|
pkgbase=mesquite
|
||||||
pkgver=3\.81_build955
|
pkgname=('mesquite' 'mesquite-extra' 'mesquite-doc')
|
||||||
|
pkgver=3.81_build955
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms"
|
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="http://mesquiteproject.org"
|
url="http://mesquiteproject.org"
|
||||||
license=('LGPL')
|
license=('LGPL')
|
||||||
depends=('java-runtime=8')
|
makedepends=('java-environment=8' 'maven' 'git' 'libicns' 'gendesk')
|
||||||
source=($pkgname-${pkgver: 0: 4}::https://github.com/MesquiteProject/MesquiteCore/releases/download/v${pkgver//_/-}/Mesquite_${pkgver: 0: 4}_Linux.tgz
|
source=($pkgbase::git+https://github.com/MesquiteProject/MesquiteCore.git#tag=v${pkgver//_/-}
|
||||||
$pkgname.png
|
$pkgbase.patch::https://github.com/MesquiteProject/MesquiteCore/pull/108.patch
|
||||||
$pkgname.desktop
|
|
||||||
$pkgname.sh
|
|
||||||
)
|
)
|
||||||
md5sums=('560700a0968ea4be1eb96df3674f876d'
|
md5sums=('SKIP'
|
||||||
'8b62ba93f95aab14a8643bf5b939f465'
|
'530fb128307845f75633ee897715b2c3')
|
||||||
'5107a3118443aca1eac69db381d7df50'
|
prepare() {
|
||||||
'f6ff62edbf95e40d21c7bceadb35ecfe')
|
cd $srcdir/$pkgbase
|
||||||
|
patch -p1 < $srcdir/$pkgbase.patch
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
build() {
|
||||||
cd $srcdir/Mesquite_Folder
|
cd $srcdir/$pkgbase
|
||||||
|
|
||||||
|
# compile pkg
|
||||||
|
mvn package
|
||||||
|
|
||||||
|
# generate desktop
|
||||||
|
gendesk --pkgname "$pkgbase" --pkgdesc "A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms" --exec="$pkgbase" --icon="$pkgbase"
|
||||||
|
|
||||||
|
# generate binary
|
||||||
|
echo "java -jar /usr/share/$pkgbase/Mesquite.jar" >> $pkgbase
|
||||||
|
chmod +x $pkgbase
|
||||||
|
|
||||||
|
cd target/classes
|
||||||
|
rm -rf *.exe Mesquite_Start* starting* Running* examples
|
||||||
|
}
|
||||||
|
|
||||||
|
package_mesquite() {
|
||||||
|
depends=('java-runtime=8' 'sh' 'python')
|
||||||
|
pkgdesc="A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms"
|
||||||
|
optdepends=('mesquite-doc: doc for mesquite'
|
||||||
|
'mesquite-extra: extra data for mesquite')
|
||||||
|
cd $srcdir/$pkgname
|
||||||
|
cd target/classes
|
||||||
|
|
||||||
# Remove bundled shell script and install own
|
|
||||||
rm -rf $pkgdir/$pkgname.sh
|
|
||||||
install -Dm755 ../$pkgname.sh $pkgdir/usr/bin/$pkgname
|
|
||||||
|
|
||||||
# Install program files
|
# Install program files
|
||||||
mkdir -p $pkgdir/usr/share/$pkgname
|
mkdir -p $pkgdir/usr/share/$pkgname
|
||||||
cp -r * $pkgdir/usr/share/$pkgname
|
cp -r * $pkgdir/usr/share/$pkgname
|
||||||
find $pkgdir/usr/share/$pkgname -type f -exec chmod 644 '{}' \;
|
find $pkgdir/usr/share/$pkgname -type f -exec chmod 644 '{}' \;
|
||||||
|
|
||||||
|
# Install icons
|
||||||
|
cd $srcdir/$pkgname/Executables/"MacOS via Automator and Script"
|
||||||
|
icns2png -x Mesquite.icns
|
||||||
|
install -Dm 644 Mesquite_128x128x32.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
||||||
|
|
||||||
|
# install binary
|
||||||
|
install -Dm755 $srcdir/$pkgbase/$pkgbase $pkgdir/usr/bin/$pkgbase
|
||||||
|
|
||||||
# Install a desktop entry
|
# Install a desktop entry
|
||||||
install -Dm644 ../$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
install -Dm755 ${srcdir}/$pkgbase/$pkgbase.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
||||||
install -Dm644 ../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
}
|
||||||
|
|
||||||
|
package_mesquite-doc(){
|
||||||
|
pkgdesc="doc for mesquite"
|
||||||
|
cd $srcdir/$pkgbase
|
||||||
|
mkdir -p $pkgdir/usr/share/doc/$pkgbase/
|
||||||
|
mv docs/* $pkgdir/usr/share/doc/$pkgbase/
|
||||||
|
mkdir -p $pkgdir/usr/share/$pkgbase/
|
||||||
|
ln -s /usr/share/doc/$pkgbase $pkgdir/usr/share/$pkgbase/docs
|
||||||
|
}
|
||||||
|
|
||||||
|
package_mesquite-extra(){
|
||||||
|
pkgdesc="extra data for mesquite"
|
||||||
|
cd $srcdir/$pkgbase
|
||||||
|
mkdir -p $pkgdir/usr/share/$pkgbase/
|
||||||
|
cd Resources
|
||||||
|
mv examples $pkgdir/usr/share/$pkgbase/
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Version=1.0
|
|
||||||
Name=Mesquite
|
|
||||||
Comment=A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms.
|
|
||||||
Exec=mesquite %U
|
|
||||||
Icon=mesquite
|
|
||||||
Terminal=false
|
|
||||||
Categories=Java;Education;Science;Biology;
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.7 KiB |
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
java=/usr/bin/java
|
|
||||||
dir=/usr/share/mesquite
|
|
||||||
|
|
||||||
cp -r "$dir/../Resources/com/"* "$dir/com/" >& /dev/null
|
|
||||||
$java -Djava.library.path=lib -Djri.ignore.ule="yes" -cp "$dir" mesquite.Mesquite $*
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue