milis/talimatname/genel/mlocate/talimat

29 lines
718 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Description= locate/updatedb birleştirilmiş uygulaması
# Url= https://fedorahosted.org/mlocate/
# Packager: milisarge
# Depends on:
name=mlocate
version=0.26
release=1
source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-${version}.tar.xz
updatedb.conf)
build() {
cd ${name}-$version
sed -i '/^groupname /s/mlocate/locate/' Makefile.in
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
make DESTDIR="${PKG}" install
chgrp 21 "${PKG}/usr/bin/locate"
chmod 2755 "${PKG}/usr/bin/locate"
ln -s locate "${PKG}/usr/bin/slocate"
install -dm755 "${PKG}/var/lib"
install -dm750 -g21 "${PKG}/var/lib/locate"
install -Dm644 ../updatedb.conf "${PKG}/etc/updatedb.conf"
}