Created
August 28, 2012 15:01
-
-
Save astanin/3498836 to your computer and use it in GitHub Desktop.
fixed imagej PKGBUILD; clean-up some mess of the source distribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This PKGBUILD does not build the sources but rather | |
# downloads a precompiled jar from the project website. | |
#I trust the NIH is doing the right thing for us ;) | |
#I will hopefully create a PKGBUILD that really builds from sources in a future version | |
# Contributor: Giulio Guzzinati <skarn86junk@gmail.com> | |
pkgname=imagej | |
pkgver=145 | |
pkgrel=2 | |
pkgdesc="Image manipulation software for scientists" | |
arch=(i686 x86_64) | |
url="http://rsbweb.nih.gov/ij/index.html" | |
license=('Public Domain') | |
depends=(java-runtime) | |
makedepends=(unzip) | |
optdepends=(java-environment) | |
provides=(imagej=$pkgver) | |
conflicts=() | |
replaces=() | |
backup=() | |
options=() | |
install= | |
source=(http://rsbweb.nih.gov/ij/download/zips/ij$pkgver.zip | |
imagej | |
imagej.desktop | |
microscope.xpm) | |
noextract=(ij$pkgver.zip) | |
md5sums=('c0e0202c4a358e886ce1582dd2c9b830' | |
'b6f8562641759d158ebf654cc7c85cb2' | |
'9d60878b6adad0e1895ce875bf299147' | |
'e7a7cef1b44ad3a8752ba63885fd88fb') | |
build() { | |
unzip "$srcdir/ij$pkgver.zip" | |
mkdir "$pkgdir/usr" | |
mkdir "$pkgdir/usr/share" | |
rm "$srcdir/ImageJ/ImageJ.exe" | |
rm -rf "$srcdir/ImageJ/ImageJ.app" | |
rm "$srcdir/ImageJ/run" | |
# Fix access rights before installing | |
find $srcdir/ImageJ/ -type f -exec chmod 644 "{}" \; | |
find $srcdir/ImageJ/ -type d -exec chmod 755 "{}" \; | |
# Fix filenames | |
mv "$srcdir/ImageJ/plugins/ README.txt" \ | |
"$srcdir/ImageJ/plugins/README.txt" | |
mv "$srcdir/ImageJ/" "$pkgdir/usr/share/imagej" | |
install -D -m 755 imagej \ | |
$pkgdir/usr/bin/imagej || return 1 | |
install -D -m 644 imagej.desktop \ | |
$pkgdir/usr/share/applications/imagej.desktop || return 1 | |
install -D -m 644 microscope.xpm \ | |
$pkgdir/usr/share/pixmaps/microscope.xpm || return 1 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment