SHARE
TWEET

erm archlinux aur PKGBUILD

a guest Dec 16th, 2010 40 Never
  1. # Contributor: Jakub Fiser AKA mr.MikyMaus <mr@MikyMaus.org>
  2. pkgname=erm
  3. pkgver=4.23
  4. pkgrel=3
  5. pkgdesc="An ER Modeller written in Java. used for teaching at CVUT FEL, Prague"
  6. arch=('i686' 'x86_64')
  7. url="http://service.felk.cvut.cz/courses/Y36DBS"
  8. license=('unknown')
  9. depends=('java-runtime')
  10. makedepends=('unzip')
  11. source=("http://service.felk.cvut.cz/courses/Y36DBS/additions/$pkgname-$pkgver.zip")
  12. noextract=("$pkgname-$pkgver.zip")
  13. md5sums=('9ab7140acfed08a5648067af248823c9')
  14.  
  15. build() {
  16. cd "${srcdir}"
  17. unzip "$pkgname-$pkgver.zip"
  18. mkdir -p "${pkgdir}/opt" "${pkgdir}/usr/bin"
  19. mv "$pkgname-$pkgver" "${pkgdir}/opt/$pkgname"
  20. echo -e '#!/bin/sh \n\n java -jar /opt/erm/erm.jar "$@" \n exit "$?"' > "${pkgdir}/usr/bin/erm"
  21. chmod 755 "${pkgdir}/usr/bin/erm"
  22. }
  23.  
  24. # vim:set ts=2 sw=2 et:
RAW Paste Data
Top