diff options
author | Butui Hu | 2021-03-07 23:18:58 +0800 |
---|---|---|
committer | Butui Hu | 2021-03-07 23:18:58 +0800 |
commit | c59d6f6097f3dc86133f54623b43c9a9c31be8ec (patch) | |
tree | 7a2ba9b7ed40372e8eaaef2406a4656db6854dbb | |
download | aur-c59d6f6097f3dc86133f54623b43c9a9c31be8ec.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..800f7c3a30a9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = qupath + pkgdesc = An open, powerful, flexible, extensible software platform for whole slide image analysis. + pkgver = 0.2.3 + pkgrel = 1 + url = https://qupath.github.io + arch = x86_64 + license = GPL + makedepends = gendesk + makedepends = java-environment + source = qupath-0.2.3.tar.gz::https://github.com/qupath/qupath/archive/v0.2.3.tar.gz + sha512sums = 176a21fca1ae62d632fa15b75f980bdd2c2375f9e0870760a1304638134649615e44438bc62ac462494782dfa5e27ada945bc6b8eabc0c0c87df79b2ea147bb7 + +pkgname = qupath + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d75eefc23832 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Butui Hu <hot123tea123@gmail.com> + +_pkgname=QuPath +pkgname=qupath +pkgver=0.2.3 +pkgrel=1 +pkgdesc="An open, powerful, flexible, extensible software platform for whole slide image analysis." +arch=('x86_64') +url="https://qupath.github.io" +license=('GPL') +makedepends=( + 'gendesk' + 'java-environment' +) +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/qupath/qupath/archive/v${pkgver}.tar.gz") +sha512sums=('176a21fca1ae62d632fa15b75f980bdd2c2375f9e0870760a1304638134649615e44438bc62ac462494782dfa5e27ada945bc6b8eabc0c0c87df79b2ea147bb7') + +prepare() { + echo "Creating desktop file" + gendesk -f -n --pkgname ${pkgname} \ + --pkgdesc "${pkgdesc}" \ + --categories "Graphics;MedicalSoftware;Science;" \ + --icon "${pkgname}" \ + --exec "qupath" +} + +build() { + cd "${pkgname}-${pkgver}" + ./gradlew clean assemble createPackage +} + +package() { + install -d ${pkgdir}/opt + cp -a ${srcdir}/${pkgname}-${pkgver}/build/dist/${_pkgname}-${pkgver} ${pkgdir}/opt/${pkgname} + install -d "${pkgdir}/usr/bin" + ln -sf "/opt/${pkgname}/bin/${_pkgname}-${pkgver}" "${pkgdir}/usr/bin/${pkgname}" + find "${pkgdir}/opt/${pkgname}/lib/app" -type f -name "*.cfg" -exec mv -v {} "${pkgdir}/opt/${pkgname}/lib/app/${_pkgname}-${pkgver}.cfg" \; + install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" +} +# vim:set ts=2 sw=2 et: + |