1 # Maintainer: kfgz <kfgz at interia pl>
6 pkgdesc="Tool for reading kernel uevents to stdout."
8 url="http://www.bellut.net/projects.html"
10 _md5sum=9d485571e66543a1e4a1eeb832a5b272
14 if [ -e ${pkgname}-${pkgver}.tar.gz ]; then
15 if [ ${_md5sum} != `md5sum ${pkgname}-${pkgver}.pet | awk '{print $1}'` ]; then error "Md5sum is incorrect!" && exit; fi
16 ln -sf "${startdir}"/${pkgname}-${pkgver}.tar.gz "${srcdir}"/${pkgname}-${pkgver}.tar.gz
18 tar -xzf "${srcdir}"/${pkgname}-${pkgver}.tar.gz
20 wget --user=puppy --password=linux http://bkhome.org/sources/alphabetical/h/${pkgname}-${pkgver}.tar.gz
21 if [ ${_md5sum} != `md5sum ${pkgname}-${pkgver}.pet | awk '{print $1}'` ]; then error "Md5sum is incorrect!" && exit; fi
22 ln -sf "${startdir}"/${pkgname}-${pkgver}.tar.gz "${srcdir}"/${pkgname}-${pkgver}.tar.gz
24 tar -xzf "${srcdir}"/${pkgname}-${pkgver}.tar.gz
26 cd "${srcdir}"/${pkgname}-${pkgver}
27 gcc -o hotplug2stdout hotplug2stdout.c
31 cd "${srcdir}"/${pkgname}-${pkgver}
32 install -d -m755 "${pkgdir}"/usr/bin
33 install -m755 ${pkgname} "${pkgdir}"/usr/bin/
34 install -m755 cddetect_quick "${pkgdir}"/usr/bin/