diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | jenn.desktop | 10 | ||||
-rw-r--r-- | jenn3d.install | 12 |
4 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..323c8f34a056 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = jenn3d-git + pkgdesc = A toy for visualizing Coxeter polytopes + pkgver = r21.d2eae24 + pkgrel = 2 + url = http://www.math.cmu.edu/~fho/jenn/ + install = jenn3d.install + arch = any + license = GPL2 + depends = freeglut + depends = glu + depends = libpng + source = git+https://github.com/fritzo/jenn3d + source = jenn.desktop + source = jenn3d.install + md5sums = SKIP + md5sums = 499c4275fb4ae1afd9a1b034c51ad54d + md5sums = 45ab05125b7409da2768c18182818bb0 + +pkgname = jenn3d-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58b2cdf46271 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Alexandre Bury <alexandre.bury@gmail.com> +pkgname=jenn3d-git +pkgver=r21.d2eae24 +pkgrel=2 +pkgdesc="A toy for visualizing Coxeter polytopes" +arch=('any') +url="http://www.math.cmu.edu/~fho/jenn/" +license=('GPL2') +depends=('freeglut' 'glu' 'libpng') +install="jenn3d.install" +source=('git+https://github.com/fritzo/jenn3d' + 'jenn.desktop' 'jenn3d.install') +md5sums=(SKIP + '499c4275fb4ae1afd9a1b034c51ad54d' + '45ab05125b7409da2768c18182818bb0') + +pkgver() { + cd "jenn3d" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "jenn3d" + make +} + +package() { + install -D "jenn3d/jenn" "${pkgdir}/usr/bin/jenn" + install -Dm644 "jenn3d/jenn.png" "${pkgdir}/usr/share/icons/hicolor/72x72/apps/jenn.png" + install -Dm644 jenn.desktop "${pkgdir}/usr/share/applications/jenn.desktop" +} diff --git a/jenn.desktop b/jenn.desktop new file mode 100644 index 000000000000..69d516f6adfc --- /dev/null +++ b/jenn.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Jenn3d +Comment=A toy for visualizing Coxeter polytopes +Exec=jenn +Icon=jenn +Terminal=false +X-MultipleArgs=false +Type=Application +Categories=Science;DataVisualization; diff --git a/jenn3d.install b/jenn3d.install new file mode 100644 index 000000000000..c317fbaca442 --- /dev/null +++ b/jenn3d.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |