diff options
Diffstat (limited to 'testing/mlocate')
-rw-r--r-- | testing/mlocate/APKBUILD | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/testing/mlocate/APKBUILD b/testing/mlocate/APKBUILD index 13cd25a8bb..d992d6a7c2 100644 --- a/testing/mlocate/APKBUILD +++ b/testing/mlocate/APKBUILD @@ -4,13 +4,14 @@ pkgname=mlocate pkgver=0.26 -pkgrel=5 -pkgdesc='A utility for finding files by name quickly' -url='https://pagure.io/mlocate' -arch='all' -license='GPL2' -options='suid' -pkggroups='locate' +pkgrel=6 +pkgdesc="A utility for finding files by name quickly" +url="https://pagure.io/mlocate" +arch="all" +license="GPL2" +options="suid" +checkdepends="bash" +pkggroups="locate" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="https://releases.pagure.org/mlocate/$pkgname-$pkgver.tar.xz @@ -23,16 +24,26 @@ prepare() { cd "$builddir" sed -i '/^groupname /s/mlocate/locate/' Makefile.in + update_config_sub } build() { cd "$builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var/lib + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --target=$CTARGET \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib make || return 1 } +check() { + cd "$builddir" + make check +} + package() { cd "$builddir" make DESTDIR="$pkgdir" install |