Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Fast merging drop-in replacement for slocate |
2 | # URL: http://carolina.mff.cuni.cz/~trmac/blog/mlocate/ | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: |
6 | ||
7 | name=mlocate | |
41f28a1b | 8 | version=0.24 |
6dca1d21 | 9 | release=1 |
94b6db3c | 10 | source=(https://fedorahosted.org/releases/m/l/$name/$name-$version.tar.xz \ |
6dca1d21 JB |
11 | mlocate updatedb.conf) |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
15 | ||
16 | ./configure --build=$CHOST \ | |
17 | --host=$CTARGET \ | |
18 | --prefix=/usr \ | |
19 | --mandir=/usr/man \ | |
20 | --sysconfdir=/etc \ | |
21 | --localstatedir=/var/lib \ | |
94b6db3c | 22 | --disable-nls |
6dca1d21 JB |
23 | |
24 | sed -i -e '29 d' -e '82 d' gnulib/lib/wchar.in.h | |
25 | make ARCH=arm | |
26 | make DESTDIR=$PKG install | |
27 | ||
28 | install -D -m 0755 $SRC/mlocate $PKG/etc/cron/daily/mlocate | |
29 | install -m 0644 $SRC/updatedb.conf $PKG/etc | |
30 | } |