add pamlx

This commit is contained in:
Kuoi 2022-03-20 22:12:57 +00:00
parent ecaa63738a
commit 345a9a8c28
4 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
pkgname=pamlx
_pkgname=pamlX
pkgver=1.3.1
pkgrel=1
pkgdesc="A Graphical User Interface for PAML https://doi.org/10.1093/molbev/mst179"
arch=('x86_64')
url="http://abacus.gene.ucl.ac.uk/software/"
license=('custom')
depends=('qt4' 'paml')
makedepends=('make')
provides=('pamlx')
source=("http://abacus.gene.ucl.ac.uk/software/pamlX${pkgver}-src.tgz" "pamlX.desktop")
sha256sums=('e6abbbc715aff1d9ebcb6d9b7c2fb494f916bee53f9cf807bf38cebc7bd625bf'
'4d46c866094df95b23d087acf402528326497308d2aeab0d8bd63f18a2f64550')
build() {
cd $_pkgname$pkgver-src
qmake-qt4
make
}
package() {
mkdir -p $pkgdir/usr/{bin,share/{icons,applications}}
install -Dm 755 $_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop
cd $_pkgname$pkgver-src
install -Dm 755 $_pkgname $pkgdir/usr/bin/$_pkgname
install -Dm755 pamlxlogo.png $pkgdir/usr/share/icons/$_pkgname.png
}

View file

@ -0,0 +1,10 @@
#!/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()

View file

@ -0,0 +1,10 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: regex
url: http://abacus.gene.ucl.ac.uk/software/paml.html
regex: pamlX(\d+.\d+.\d+)-src.tgz
repo_depends:
- paml

View file

@ -0,0 +1,16 @@
[Desktop Entry]
Categories=
Encoding=UTF-8
Exec=pamlX
GenericName=pamlX
Icon=/usr/share/icons/pamlX.png
MimeType=
Name=pamlX
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=root