mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-16 02:30:23 +08:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=util-linux
|
|
pkgver=2.20.1
|
|
pkgrel=1
|
|
pkgdesc="Miscellaneous system utilities for Linux"
|
|
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
|
|
arch=('i686' 'x86_64')
|
|
groups=('base')
|
|
depends=('filesystem')
|
|
replaces=('linux32' 'util-linux-ng')
|
|
conflicts=('linux32' 'util-linux-ng' 'e2fsprogs<1.41.8-2')
|
|
provides=('linux32' "util-linux-ng=${pkgver}")
|
|
license=('GPL2')
|
|
options=('!libtool')
|
|
#source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2)
|
|
source=(ftp://ftp.infradead.org/pub/${pkgname}/v2.20/${pkgname}-${pkgver}.tar.bz2)
|
|
optdepends=('perl: for chkdupexe support')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# hardware clock
|
|
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i include/pathnames.h
|
|
|
|
./configure --enable-arch\
|
|
--enable-write\
|
|
--enable-raw\
|
|
--disable-wall\
|
|
--enable-partx\
|
|
--enable-libmount-mount
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
install -dm755 "${pkgdir}/var/lib/hwclock"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
md5sums=('079b37517fd4e002a2e6e992e8b4e361') |