1 # Contributor: Enno Lohmeier <e.lohmeier@gmx.de>
5 pkgdesc="fbrcapi (Fritz!Box Remote CAPI over TCP) is a kernel module, for Fritz!Box Fon Routers to transport CAPI messages over TCP."
7 url="http://fbrcapi.v3v.de/"
9 depends=('capi4k-utils' 'kernel26')
10 makedepends=('patch' 'perl')
11 source=('http://fbrcapi.v3v.de/dl/fbrcapi-0.3.tar.gz')
12 md5sums=('c9aae30be1e454f93f0b0fd20268cc51')
13 install=fbrcapi.install
16 cd "$srcdir/fbrcapi-$pkgver/"
18 perl -pe 's/.*/KERNEL_DIR := \/usr\/src\/linux-`uname -r`/ if $. == 1' Makefile > Makefile.tmp
20 perl -pe 's/.*/ mkdir -p \$(DESTDIR)\/\$(BUILD_DIR)/ if $. == 17' Makefile.tmp > Makefile
22 perl -pe 's/.*/ cp \$(BUILD_NAME).ko \$(DESTDIR)\/\$(BUILD_DIR)/ if $. == 18' Makefile > Makefile.tmp
24 perl -pe 's/.*// if $. == 19' Makefile.tmp > Makefile
29 make DESTDIR=$pkgdir install