From The Compiler, 1 Year ago, written in Bash.
Embed
  1. # Contributor: Jonathan Liu <net147@gmail.com>
  2. # Contributor: Florian Bruhin (The-Compiler) <archlinux.org@the-compiler.org>
  3. pkgname=evrouter
  4. pkgver=0.4
  5. pkgrel=2
  6. pkgdesc="An Input Event Router for Linux"
  7. arch=('i686' 'x86_64')
  8. url="http://www.bedroomlan.org/~alexios/coding_evrouter.html"
  9. license=('GPL2')
  10. depends=('libxtst')
  11. makedepends=('automake>=1.10.1')
  12. source=("http://debian.bedroomlan.org/debian/pool/main/e/${pkgname}/${pkgname}_${pkgver}.tar.gz"
  13.         "http://www.the-compiler.org/downloads/evrouter.patch")
  14. md5sums=('eef1b9d8e3b545c330eb025670ffa3e8'
  15.          'bf623c345a14f61c3e0efb0e3a015a04')
  16.  
  17. build() {
  18.   cd "${srcdir}/${pkgname}-${pkgver}"
  19.   patch -p1 -i "${srcdir}/evrouter.patch"
  20.   aclocal
  21.   automake --add-missing
  22.   ./configure --prefix=/usr --without-xmms
  23.   make || return 1
  24.   make DESTDIR="${pkgdir}" install
  25.   install -D -m644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
  26.   install -D -m644 debian/changelog "${pkgdir}/usr/share/doc/${pkgname}/changelog"
  27.   install -D -m644 debian/copyright "${pkgdir}/usr/share/doc/${pkgname}/copyright"
  28.   install -D -m755 src/example "${pkgdir}/usr/share/doc/${pkgname}/examples/example"
  29. }
  30.  
  31. # vim:set ts=2 sw=2 et: