diff options
author | Kuoi | 2023-05-16 00:16:10 +0800 |
---|---|---|
committer | Kuoi | 2023-05-16 00:16:10 +0800 |
commit | ddbcddef37d3d9fb5673b8716134c3edce04af9c (patch) | |
tree | 5f33f062587275a1032948197600cbdcc36ae8e6 | |
parent | 8a7d5dc5907bcf1b01bbe570cfeef7de9fc02057 (diff) | |
download | aur-ddbcddef37d3d9fb5673b8716134c3edce04af9c.tar.gz |
fix: build from soure
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 85 |
2 files changed, 84 insertions, 32 deletions
@@ -1,18 +1,29 @@ pkgbase = mesquite - pkgdesc = A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms pkgver = 3.81_build955 pkgrel = 1 url = http://mesquiteproject.org arch = any license = LGPL - depends = java-runtime=8 - source = mesquite-3.81::https://github.com/MesquiteProject/MesquiteCore/releases/download/v3.81-build955/Mesquite_3.81_Linux.tgz - source = mesquite.png - source = mesquite.desktop - source = mesquite.sh - md5sums = 560700a0968ea4be1eb96df3674f876d - md5sums = 8b62ba93f95aab14a8643bf5b939f465 - md5sums = 5107a3118443aca1eac69db381d7df50 - md5sums = f6ff62edbf95e40d21c7bceadb35ecfe + makedepends = java-environment=8 + makedepends = maven + makedepends = git + makedepends = libicns + makedepends = gendesk + source = mesquite::git+https://github.com/MesquiteProject/MesquiteCore.git#tag=v3.81-build955 + source = mesquite.patch::https://github.com/MesquiteProject/MesquiteCore/pull/108.patch + md5sums = SKIP + md5sums = 530fb128307845f75633ee897715b2c3 pkgname = mesquite + pkgdesc = A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms + depends = java-runtime=8 + depends = sh + depends = python + optdepends = mesquite-doc: doc for mesquite + optdepends = mesquite-extra: extra data for mesquite + +pkgname = mesquite-extra + pkgdesc = extra data for mesquite + +pkgname = mesquite-doc + pkgdesc = doc for mesquite @@ -3,38 +3,79 @@ # Contributor: Anton Bazhenov <anton.bazhenov at gmail> # Contributor: Mick Elliot <micke at sfu dot ca> -pkgname=mesquite -pkgver=3\.81_build955 +pkgbase=mesquite +pkgname=('mesquite' 'mesquite-extra' 'mesquite-doc') +pkgver=3.81_build955 pkgrel=1 -pkgdesc="A modular, extendible software for evolutionary biology, designed to help biologists organize and analyze comparative data about organisms" arch=('any') url="http://mesquiteproject.org" license=('LGPL') -depends=('java-runtime=8') -source=($pkgname-${pkgver: 0: 4}::https://github.com/MesquiteProject/MesquiteCore/releases/download/v${pkgver//_/-}/Mesquite_${pkgver: 0: 4}_Linux.tgz - $pkgname.png - $pkgname.desktop - $pkgname.sh +makedepends=('java-environment=8' 'maven' 'git' 'libicns' 'gendesk') +source=($pkgbase::git+https://github.com/MesquiteProject/MesquiteCore.git#tag=v${pkgver//_/-} + $pkgbase.patch::https://github.com/MesquiteProject/MesquiteCore/pull/108.patch ) -md5sums=('560700a0968ea4be1eb96df3674f876d' - '8b62ba93f95aab14a8643bf5b939f465' - '5107a3118443aca1eac69db381d7df50' - 'f6ff62edbf95e40d21c7bceadb35ecfe') - -package() { - cd $srcdir/Mesquite_Folder - - # Remove bundled shell script and install own - rm -rf $pkgdir/$pkgname.sh - install -Dm755 ../$pkgname.sh $pkgdir/usr/bin/$pkgname - +md5sums=('SKIP' + '530fb128307845f75633ee897715b2c3') +prepare() { + cd $srcdir/$pkgbase + patch -p1 < $srcdir/$pkgbase.patch +} + +build() { + 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 + # Install program files mkdir -p $pkgdir/usr/share/$pkgname cp -r * $pkgdir/usr/share/$pkgname 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 -Dm644 ../$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png - install -Dm644 ../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop + install -Dm755 ${srcdir}/$pkgbase/$pkgbase.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/ } |