summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeslie P. Polzer <polzer@port-zero.com>2013-10-20 18:58:17 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-28 20:15:16 +0000
commitbaddbb3fa67a5a8017cfc3a2c1426f36058b99fa (patch)
tree9a2bd947a412fdb2ab7c3b8460f4b7745f3a37fe /testing
parentf926ec798bb7b28620afcce4b0ac1fa2a0b0ce48 (diff)
downloadaports-baddbb3fa67a5a8017cfc3a2c1426f36058b99fa.tar.bz2
aports-baddbb3fa67a5a8017cfc3a2c1426f36058b99fa.tar.xz
testing/mlocate: Update mlocate to 0.26
Diffstat (limited to 'testing')
-rw-r--r--testing/mlocate/APKBUILD52
1 files changed, 30 insertions, 22 deletions
diff --git a/testing/mlocate/APKBUILD b/testing/mlocate/APKBUILD
index f23c46578..dcd71b7cc 100644
--- a/testing/mlocate/APKBUILD
+++ b/testing/mlocate/APKBUILD
@@ -1,48 +1,56 @@
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Leslie P. Polzer <polzer@port-zero.com>
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=mlocate
-pkgver=0.25
+pkgver=0.26
pkgrel=0
-pkgdesc='An utility to index and quickly search for files by name'
+pkgdesc='A utility to index and quickly search for files by name'
url='https://fedorahosted.org/mlocate/'
arch='all'
license='GPL'
+pkggroups='locate'
install="$pkgname.pre-install"
-makedepends='uclibc-dev sed'
+makedepends=""
subpackages="$pkgname-doc"
source="https://fedorahosted.org/releases/m/l/mlocate/mlocate-$pkgver.tar.xz
updatedb.conf
updatedb.cron.daily"
-build() {
- cd $srcdir/$pkgname-$pkgver
+_builddir="$srcdir"/$pkgname-$pkgver
- sed -i '/^groupname /s/mlocate/locate/' Makefile.in
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
- make
+prepare() {
+ cd "$_builddir"
+ sed -i '/^groupname /s/mlocate/locate/' Makefile.in
}
-check() {
- cd $srcdir/$pkgname-$pkgver
- make check
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib
+ make || return 1
}
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$_builddir"
- make DESTDIR=$pkgdir install
+ make DESTDIR="$pkgdir" install
- ln -s locate $pkgdir/usr/bin/slocate
- chgrp locate $pkgdir/usr/bin/locate
- chmod 2755 $pkgdir/usr/bin/locate
+ ln -s locate "$pkgdir"/usr/bin/slocate
- install -dm755 $pkgdir/var/lib
- install -dm750 -g locate $pkgdir/var/lib/locate
+ install -dm755 "$pkgdir"/var/lib
- install -Dm644 ${srcdir}/updatedb.conf $pkgdir/etc/updatedb.conf
- install -Dm744 ${srcdir}/updatedb.cron.daily $pkgdir/etc/cron.daily/updatedb
+ install -Dm644 "$srcdir"/updatedb.conf "$pkgdir"/etc/updatedb.conf
+ install -Dm744 "$srcdir"/updatedb.cron.daily \
+ "$pkgdir"/etc/periodic/daily/updatedb
}
-
-md5sums="c6d043b170613b0e327a815b497f680a mlocate-0.25.tar.xz
+md5sums="539e6f86bf387358aa2b14d5f880e49a mlocate-0.26.tar.xz
465315bfa3380a23fae9a383270cb2ec updatedb.conf
cde5da81bebad2de556ef2e43d895e13 updatedb.cron.daily"
+sha256sums="3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e mlocate-0.26.tar.xz
+2523ec44fc74eb112a21671aca7cd3f5967e349c6017f5c34591c82f85490e81 updatedb.conf
+fe70ce6b8771bc750d5200ab4cc5bd97b579eeec92f1939f5d777614a0736c3e updatedb.cron.daily"
+sha512sums="b1207047e30a551cba39e70812439b554def567ebe9b8b81fed6f26435bb575beafe4875a21cd72876eadd85da4e7bfc942eb28b17c430b537c351690364837f mlocate-0.26.tar.xz
+663ebf09348458a3c82ac83bf77de9d38a214bd91c73385b2ea7fb7eda5beaaa7ad1d7c66a8a017ef6a0d5295ff1778bedab9be60d9b3a5ac3fefe5f1593a5f5 updatedb.conf
+60551f1574a31650bc665901cac418366ba26dc8514fb82ca55c75d29a9617ce05bc77b2a14c724cd49c8375d8ad5c3e9ba4df4210ce1b6b37bb3a244dcdc84c updatedb.cron.daily"