mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
artemis: build from source as pre-build not work
This commit is contained in:
parent
8c22908925
commit
d058732f46
10 changed files with 92 additions and 96 deletions
|
@ -1,31 +1,75 @@
|
||||||
# Maintainer: Clint Valentine <valentine.clint@gmail.com>
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
# Contributor: Clint Valentine <valentine.clint@gmail.com>
|
||||||
|
|
||||||
pkgname='artemis'
|
pkgname=artemis
|
||||||
|
_pkgname=Artemis
|
||||||
pkgver=18.2.0
|
pkgver=18.2.0
|
||||||
pkgrel=5
|
pkgrel=5
|
||||||
pkgdesc='A genome viewer and annotation tool that visualizes biological sequence features'
|
pkgdesc='A genome viewer and annotation tool that visualizes biological sequence features'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url=https://www.sanger.ac.uk/science/tools/"${pkgname}"
|
url=https://www.sanger.ac.uk/science/tools/"${pkgname}"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('java-runtime>=1.6')
|
depends=('java-runtime')
|
||||||
source=("${pkgname}"-"${pkgver}".tar.gz::https://github.com/sanger-pathogens/Artemis/releases/download/v${pkgver}/artemis-unix-release-${pkgver}.tar.gz)
|
makedepends=('java-environment' 'maven')
|
||||||
sha256sums=('06441e1abab139cb0a09d5844cb1b84ae727ace53a6c0efdd1eea8d8cfab8382')
|
source=($pkgname-$pkgver.tar.gz::https://github.com/sanger-pathogens/Artemis/archive/refs/tags/v${pkgver}.tar.gz
|
||||||
|
act.desktop
|
||||||
package() {
|
artemis.desktop
|
||||||
cd "${srcdir}"/"${pkgname}"
|
bamview.desktop
|
||||||
|
dnaplotter.desktop)
|
||||||
sed -i 's#ARTEMIS_HOME=`dirname "$PRG"`/.#ARTEMIS_HOME=/opt/artemis/#' art
|
sha256sums=('842c055f5cce021adbaea4f076b2ea80335ab1e44fbaa34b2ab608df6314a18e'
|
||||||
sed -i 's#ACT_HOME=`dirname "$PRG"`/.#ACT_HOME=/opt/artemis/#' act
|
'a7dda77f6518c98af6df88ba5d725f1b89d86aca125240f63a9c6e08afeb2a24'
|
||||||
sed -i 's#ARTEMIS_HOME=`dirname "$PRG"`/.#ARTEMIS_HOME=/opt/artemis/#' dnaplotter
|
'dea9a1cc47b110c4f6ebe17c1b698866082997ffd9e6008d89847ddf745a0789'
|
||||||
|
'3ca519b00ffac02d635a62884996ad5b8c4580d8ffe8fcd427ee4edee1562f00'
|
||||||
mkdir -p "${pkgdir}"/opt/"${pkgname}"/
|
'ef584b45f9c92da15511779f20a1a1449915315066662e4c142ea4cd92dd717c')
|
||||||
cp -a * "${pkgdir}"/opt/"${pkgname}"/
|
#prepare() {
|
||||||
|
#scripts=('act' 'art' 'bamview' 'dnaplotter')
|
||||||
scripts=('act' 'art' 'dnaplotter')
|
# cd $srcdir/$_pkgname-$pkgver
|
||||||
for script in "${scripts[@]}"; do
|
# patch -N -i $srcdir/fix_bin.patch
|
||||||
install -Dm775 "${script}" "${pkgdir}"/usr/bin/"${script}"
|
#}
|
||||||
rm "${pkgdir}"/opt/"${pkgname}"/"${script}"
|
build() {
|
||||||
done
|
cd $srcdir/$_pkgname-$pkgver
|
||||||
|
mvn validate
|
||||||
install -Dm644 README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/README.md
|
mvn package
|
||||||
|
}
|
||||||
|
package() {
|
||||||
|
bina=('act' 'art' 'bamview' 'dnaplotter')
|
||||||
|
scripts=('act' 'artemis' 'bamview' 'dnaplotter')
|
||||||
|
|
||||||
|
# desktop
|
||||||
|
cd $srcdir/
|
||||||
|
for des in ${scripts[@]}
|
||||||
|
do
|
||||||
|
install -Dm 755 $des.desktop $pkgdir/usr/share/applications/$des.desktop
|
||||||
|
done
|
||||||
|
|
||||||
|
# bin
|
||||||
|
cd $srcdir/$_pkgname-$pkgver
|
||||||
|
for bin in ${bina[@]}
|
||||||
|
do
|
||||||
|
install -Dm 775 $bin $pkgdir/usr/share/$pkgname/$bin
|
||||||
|
done
|
||||||
|
|
||||||
|
# jar
|
||||||
|
cd $srcdir/$_pkgname-$pkgver/target/jars
|
||||||
|
for jar in $(ls *.jar)
|
||||||
|
do
|
||||||
|
install -Dm 755 $jar $pkgdir/usr/share/$pkgname/target/jars/$jar
|
||||||
|
done
|
||||||
|
|
||||||
|
# icons
|
||||||
|
cd $srcdir/$_pkgname-$pkgver/target/classes/images
|
||||||
|
for icn in ${scripts[@]}
|
||||||
|
do
|
||||||
|
mv ${icn}_icon.png ${icn}.png
|
||||||
|
install -Dm 644 ${icn}.png $pkgdir/usr/share/pixmaps/${icn}.png
|
||||||
|
done
|
||||||
|
|
||||||
|
# link bin
|
||||||
|
cd $srcdir/$_pkgname-$pkgver
|
||||||
|
mkdir -p $pkgdir/usr/bin
|
||||||
|
for bin in ${bina[@]}
|
||||||
|
do
|
||||||
|
ln -s /usr/share/$pkgname/$bin $pkgdir/usr/bin/$bin
|
||||||
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,6 +2,13 @@ build_prefix: extra-x86_64
|
||||||
maintainers:
|
maintainers:
|
||||||
- github: starsareintherose
|
- github: starsareintherose
|
||||||
email: kuoi@bioarchlinux.org
|
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:
|
update_on:
|
||||||
- source: github
|
- source: github
|
||||||
github: sanger-pathogens/Artemis
|
github: sanger-pathogens/Artemis
|
||||||
|
|
|
@ -1,75 +1,31 @@
|
||||||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
# Maintainer: Clint Valentine <valentine.clint@gmail.com>
|
||||||
# Contributor: Clint Valentine <valentine.clint@gmail.com>
|
|
||||||
|
|
||||||
pkgname=artemis
|
pkgname='artemis'
|
||||||
_pkgname=Artemis
|
|
||||||
pkgver=18.2.0
|
pkgver=18.2.0
|
||||||
pkgrel=5
|
pkgrel=5
|
||||||
pkgdesc='A genome viewer and annotation tool that visualizes biological sequence features'
|
pkgdesc='A genome viewer and annotation tool that visualizes biological sequence features'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url=https://www.sanger.ac.uk/science/tools/"${pkgname}"
|
url=https://www.sanger.ac.uk/science/tools/"${pkgname}"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('java-runtime')
|
depends=('java-runtime>=1.6')
|
||||||
makedepends=('java-environment' 'maven')
|
source=("${pkgname}"-"${pkgver}".tar.gz::https://github.com/sanger-pathogens/Artemis/releases/download/v${pkgver}/artemis-unix-release-${pkgver}.tar.gz)
|
||||||
source=($pkgname-$pkgver.tar.gz::https://github.com/sanger-pathogens/Artemis/archive/refs/tags/v${pkgver}.tar.gz
|
sha256sums=('06441e1abab139cb0a09d5844cb1b84ae727ace53a6c0efdd1eea8d8cfab8382')
|
||||||
act.desktop
|
|
||||||
artemis.desktop
|
|
||||||
bamview.desktop
|
|
||||||
dnaplotter.desktop)
|
|
||||||
sha256sums=('842c055f5cce021adbaea4f076b2ea80335ab1e44fbaa34b2ab608df6314a18e'
|
|
||||||
'a7dda77f6518c98af6df88ba5d725f1b89d86aca125240f63a9c6e08afeb2a24'
|
|
||||||
'dea9a1cc47b110c4f6ebe17c1b698866082997ffd9e6008d89847ddf745a0789'
|
|
||||||
'3ca519b00ffac02d635a62884996ad5b8c4580d8ffe8fcd427ee4edee1562f00'
|
|
||||||
'ef584b45f9c92da15511779f20a1a1449915315066662e4c142ea4cd92dd717c')
|
|
||||||
#prepare() {
|
|
||||||
#scripts=('act' 'art' 'bamview' 'dnaplotter')
|
|
||||||
# cd $srcdir/$_pkgname-$pkgver
|
|
||||||
# patch -N -i $srcdir/fix_bin.patch
|
|
||||||
#}
|
|
||||||
build() {
|
|
||||||
cd $srcdir/$_pkgname-$pkgver
|
|
||||||
mvn validate
|
|
||||||
mvn package
|
|
||||||
}
|
|
||||||
package() {
|
package() {
|
||||||
bina=('act' 'art' 'bamview' 'dnaplotter')
|
cd "${srcdir}"/"${pkgname}"
|
||||||
scripts=('act' 'artemis' 'bamview' 'dnaplotter')
|
|
||||||
|
|
||||||
# desktop
|
sed -i 's#ARTEMIS_HOME=`dirname "$PRG"`/.#ARTEMIS_HOME=/opt/artemis/#' art
|
||||||
cd $srcdir/
|
sed -i 's#ACT_HOME=`dirname "$PRG"`/.#ACT_HOME=/opt/artemis/#' act
|
||||||
for des in ${scripts[@]}
|
sed -i 's#ARTEMIS_HOME=`dirname "$PRG"`/.#ARTEMIS_HOME=/opt/artemis/#' dnaplotter
|
||||||
do
|
|
||||||
install -Dm 755 $des.desktop $pkgdir/usr/share/applications/$des.desktop
|
|
||||||
done
|
|
||||||
|
|
||||||
# bin
|
mkdir -p "${pkgdir}"/opt/"${pkgname}"/
|
||||||
cd $srcdir/$_pkgname-$pkgver
|
cp -a * "${pkgdir}"/opt/"${pkgname}"/
|
||||||
for bin in ${bina[@]}
|
|
||||||
do
|
|
||||||
install -Dm 775 $bin $pkgdir/usr/share/$pkgname/$bin
|
|
||||||
done
|
|
||||||
|
|
||||||
# jar
|
scripts=('act' 'art' 'dnaplotter')
|
||||||
cd $srcdir/$_pkgname-$pkgver/target/jars
|
for script in "${scripts[@]}"; do
|
||||||
for jar in $(ls *.jar)
|
install -Dm775 "${script}" "${pkgdir}"/usr/bin/"${script}"
|
||||||
do
|
rm "${pkgdir}"/opt/"${pkgname}"/"${script}"
|
||||||
install -Dm 755 $jar $pkgdir/usr/share/$pkgname/target/jars/$jar
|
done
|
||||||
done
|
|
||||||
|
|
||||||
# icons
|
|
||||||
cd $srcdir/$_pkgname-$pkgver/target/classes/images
|
|
||||||
for icn in ${scripts[@]}
|
|
||||||
do
|
|
||||||
mv ${icn}_icon.png ${icn}.png
|
|
||||||
install -Dm 644 ${icn}.png $pkgdir/usr/share/pixmaps/${icn}.png
|
|
||||||
done
|
|
||||||
|
|
||||||
# link bin
|
|
||||||
cd $srcdir/$_pkgname-$pkgver
|
|
||||||
mkdir -p $pkgdir/usr/bin
|
|
||||||
for bin in ${bina[@]}
|
|
||||||
do
|
|
||||||
ln -s /usr/share/$pkgname/$bin $pkgdir/usr/bin/$bin
|
|
||||||
done
|
|
||||||
|
|
||||||
|
install -Dm644 README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/README.md
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue