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