diff options
author | CrocoDuck | 2016-07-18 18:44:38 +0100 |
---|---|---|
committer | CrocoDuck | 2016-07-18 18:44:38 +0100 |
commit | 0b2b0348c9b3b29b8d5ce287a5cbd0a91d933c54 (patch) | |
tree | 68b1d0aeb4ba7e5fb4db4b3ee01172a025271aae | |
download | aur-0b2b0348c9b3b29b8d5ce287a5cbd0a91d933c54.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d49be8fc663e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = gmsh-bin + pkgdesc = a free 3D finite element grid generator with a build-in CAD engine and post-processor + pkgver = 2.13.1 + pkgrel = 1 + url = http://gmsh.info/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = wget + makedepends = tar + makedepends = gendesk + makedepends = chrpath + depends = libxft + depends = libxinerama + depends = libxcursor + depends = glu + depends = libsm + provides = gmsh + conflicts = gmsh + +pkgname = gmsh-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..711fc463944e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: CrocoDuck <crocoduck dot oducks at gmail dot com> + +pkgname=gmsh-bin +pkgver=2.13.1 +pkgrel=1 +pkgdesc="a free 3D finite element grid generator with a build-in CAD engine and post-processor" +arch=('i686' 'x86_64') +url="http://gmsh.info/" +license=('GPL') +depends=('libxft' 'libxinerama' 'libxcursor' 'glu' 'libsm') +makedepends=('wget' 'tar' 'gendesk' 'chrpath') +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") + +# Define Download data: +if [ $CARCH == 'x86_64' ]; then + _downfname=gmsh-${pkgver}-Linux64.tgz + _downsha256sum=ab358e061fb5d5ad8a4fd3296caf5cc7082f537a270c19eb42838e834c8b9cc9 +else + _downfname=gmsh-${pkgver}-Linux32.tgz + _downsha256sum=7540dbf74c92c4f0214b2f1cd53db5835d755fc46b2f58bf0b3ce70db128fabd +fi + +prepare() { + # Download Files: + wget "${url}bin/Linux/$_downfname" + # Checksum: + echo $_downsha256sum $_downfname|sha256sum -c || { echo 'Checksum failed!'; exit 1; } + # Extract: + tar zxvf $_downfname + # Set Icon and Launcher: + cp "${srcdir}/${pkgname%-*}-${pkgver}-Linux/share/doc/${pkgname%-*}/tutorial/image.png" "${srcdir}/gmsh_icon.png" + gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --name=${pkgname%-*} --exec=${pkgname%-*} --categories 'Education;Science;Math;' + # Strip RPATH from binary: + chrpath -d "${srcdir}/${pkgname%-*}-${pkgver}-Linux/bin/gmsh" +} + +package() { + # Program Files + cd "${srcdir}/${pkgname%-*}-${pkgver}-Linux/bin" + for file in *; do + install -Dm 755 "$file" "${pkgdir}/usr/bin/$file" + done + # Docs: + cd "$srcdir" + mkdir -p "${pkgdir}/usr/share/doc" + cp -r "${srcdir}/${pkgname%-*}-${pkgver}-Linux/share/doc/${pkgname%-*}" "${pkgdir}/usr/share/doc/${pkgname%-*}" + # Man + cd "$srcdir" + install -D "${srcdir}/${pkgname%-*}-${pkgver}-Linux/share/man/man1/${pkgname%-*}.1" "${pkgdir}/usr/share/man/man1/${pkgname%-*}.1" + # Launcher + install -Dm 644 "${srcdir}/gmsh_icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -Dm 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-*}.desktop" +} + |