mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
41 lines
1,002 B
Bash
41 lines
1,002 B
Bash
|
# Maintainer: Shawn Wilson <ag4ve.us@gmail.com>
|
||
|
pkgname=olsrd
|
||
|
pkgrel=1
|
||
|
pkgver=0.6.3
|
||
|
pkgdesc="an adhoc wireless mesh routing daemon"
|
||
|
arch=(arm)
|
||
|
url="http://olsr.org/"
|
||
|
license=('custom')
|
||
|
depends=('glibc')
|
||
|
source=(http://www.olsr.org/releases/0.6/$pkgname-$pkgver.tar.bz2)
|
||
|
md5sums=('b28ed2e3dc6c529ab690f1c805ad32a2')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
|
||
|
make build_all
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
|
||
|
install -d $pkgdir/usr/sbin/
|
||
|
install -m 0755 olsrd $pkgdir/usr/sbin/
|
||
|
install -d $pkgdir/etc/
|
||
|
install -m 0644 files/olsrd.conf.default.lq $pkgdir/etc/olsrd.conf
|
||
|
install -d $pkgdir/usr/share/man/man8/
|
||
|
install -m 0644 files/olsrd.8.gz $pkgdir/usr/share/man/man8/
|
||
|
install -d $pkgdir/usr/share/man/man5/
|
||
|
install -m 0644 files/olsrd.conf.5.gz $pkgdir/usr/share/man/man5/olsrd.conf.5.gz
|
||
|
|
||
|
install -d $pkgdir/usr/lib/
|
||
|
|
||
|
find ./lib -name "*.so.*" -print | \
|
||
|
while read lib; do \
|
||
|
install -D -m 0644 $lib $pkgdir/usr/lib/; \
|
||
|
done
|
||
|
|
||
|
ldconfig -n /usr/lib
|
||
|
}
|
||
|
|