From 15d2736831c847c418b70ebd60c19229e3e08bb2 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Wed, 11 Oct 2023 17:13:05 +0800 Subject: [PATCH] phylip: source web mv --- BioArchLinux/phylip/PKGBUILD | 4 ++-- BioArchLinux/phylip/lilac.py | 10 ---------- BioArchLinux/phylip/lilac.yaml | 7 ++++++- 3 files changed, 8 insertions(+), 13 deletions(-) delete mode 100755 BioArchLinux/phylip/lilac.py diff --git a/BioArchLinux/phylip/PKGBUILD b/BioArchLinux/phylip/PKGBUILD index 8e5e692f39..8613cefaa4 100644 --- a/BioArchLinux/phylip/PKGBUILD +++ b/BioArchLinux/phylip/PKGBUILD @@ -6,8 +6,8 @@ pkgver=3.698 pkgrel=5 pkgdesc="A collection of programmes for evolutive genetics and inferring phylogenies. https://doi.org/10.1111/j.1096-0031.1989.tb00562.x" arch=('i686' 'x86_64') -url="http://evolution.genetics.washington.edu/phylip.html" -source=(http://evolution.gs.washington.edu/phylip/download/phylip-$pkgver.zip +url="https://github.com/felsenst/phylip" +source=(https://github.com/phylipweb/phylip/raw/main/download/phylip-$pkgver.zip phylip-3.698-makefile.patch phylip-3.698-fno-common.patch) optdepends=('java-runtime') diff --git a/BioArchLinux/phylip/lilac.py b/BioArchLinux/phylip/lilac.py deleted file mode 100755 index fcbff72939..0000000000 --- a/BioArchLinux/phylip/lilac.py +++ /dev/null @@ -1,10 +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() diff --git a/BioArchLinux/phylip/lilac.yaml b/BioArchLinux/phylip/lilac.yaml index 605b1e6705..fb108183b6 100755 --- a/BioArchLinux/phylip/lilac.yaml +++ b/BioArchLinux/phylip/lilac.yaml @@ -2,7 +2,12 @@ maintainers: - github: starsareintherose email: kuoi@bioarchlinux.org build_prefix: extra-x86_64 +pre_build_script: | + update_pkgver_and_pkgrel(_G.newver.lstrip('v')) + run_cmd(['updpkgsums']) +post_build_script: | + git_pkgbuild_commit() update_on: - source: regex - url: "https://evolution.gs.washington.edu/phylip/download/" + url: "https://github.com/phylipweb/phylip/tree/main/download" regex: phylip-(\d+.\d+).zip