diff options
author | Ricardo Gonçalves | 2016-12-13 17:02:04 +0000 |
---|---|---|
committer | Ricardo Gonçalves | 2016-12-13 17:02:04 +0000 |
commit | 971eb6d993eb37b43aa330310e4868f2f3943bc0 (patch) | |
tree | 06f0a3905454a5cebfae02d25d7d18ac76eac430 | |
download | aur-971eb6d993eb37b43aa330310e4868f2f3943bc0.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | hapi-testpanel.desktop | 9 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..732026686bf6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = hapi-testpanel + pkgdesc = HL7 2.x parser with support for traditional (ER7) and XML encoding + pkgver = 2.0 + pkgrel = 1 + url = http://hl7api.sourceforge.net/ + arch = i686 + arch = x86_64 + license = MPL + license = GPL + makedepends = imagemagick + makedepends = unzip + depends = jre8-openjdk + source = https://freefr.dl.sourceforge.net/project/hl7api/hapi-testpanel/2.0.1/hapi-testpanel-2.0.1-linux.tar.bz2 + source = hapi-testpanel.desktop + md5sums = 7d4d0f1a4b5502fdd030e14f9be5c1b1 + md5sums = 8091c230d65ed7d9ae748ad4dfec2dec + +pkgname = hapi-testpanel + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2dc6d6710c82 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Ricardo Gonçalves <rgoncalves@hltsys.pt> + +pkgname=hapi-testpanel +pkgver=2.0 +pkgrel=1 +pkgdesc="HL7 2.x parser with support for traditional (ER7) and XML encoding" +arch=('i686' 'x86_64') +url="http://hl7api.sourceforge.net/" +license=('MPL' 'GPL') +depends=('jre8-openjdk') +makedepends=('imagemagick' 'unzip') +source=("https://freefr.dl.sourceforge.net/project/hl7api/${pkgname}/${pkgver}.${pkgrel}/${pkgname}-${pkgver}.${pkgrel}-linux.tar.bz2" + "${pkgname}.desktop") +md5sums=('7d4d0f1a4b5502fdd030e14f9be5c1b1' + '8091c230d65ed7d9ae748ad4dfec2dec') + +package() { + # Creating directories... + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/${pkgname}" + mkdir -p "${pkgdir}/usr/share/icons/hicolor/64x64/apps/" + mkdir -p "${pkgdir}/usr/share/applications" + + # Copying files... + cp "${pkgname}-${pkgver}.${pkgrel}/${pkgname}-${pkgver}.${pkgrel}-jar-with-dependencies.jar" "${pkgdir}/usr/share/${pkgname}" + cp "${pkgname}.desktop" "${pkgdir}/usr/share/applications/" + unzip -p "${pkgname}-${pkgver}.${pkgrel}/${pkgname}-${pkgver}.${pkgrel}-jar-with-dependencies.jar" hapi_64.ico | convert ico:-[3] "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png" + + echo \#\!/bin/sh > "${pkgname}.sh" + echo java -jar /usr/share/${pkgname}/${pkgname}-${pkgver}.${pkgrel}-jar-with-dependencies.jar >> "${pkgname}.sh" + chmod a+x "${pkgname}.sh" + mv "${pkgname}.sh" "${pkgdir}/usr/share/${pkgname}" + ln -s "/usr/share/${pkgname}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" +} + diff --git a/hapi-testpanel.desktop b/hapi-testpanel.desktop new file mode 100644 index 000000000000..86918a9a3e25 --- /dev/null +++ b/hapi-testpanel.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=HAPI TestPanel +Comment=HL7 2.x parser with support for traditional (ER7) and XML encoding +Exec=hapi-testpanel %U +Icon=hapi-testpanel +Terminal=false +Type=Application +Encoding=UTF-8 +Categories=Application;Development; |