feat: use instead
This commit is contained in:
@@ -21,8 +21,8 @@ md5sums=("b390feef233022114950317f10c4fa97"
|
||||
license=(GPL-2.0-or-later LGPL-2.1-or-later)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
patch -Np1 -i "${DIST_DIR}/${pkgname}-${pkgver}/${sources[1]}"
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
patch -Np1 -i "${distdir}/${sources[1]}"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
@@ -95,10 +95,10 @@ src_install() {
|
||||
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
|
||||
|
||||
if [ ! -f /etc/nsswitch.conf ]; then
|
||||
install -m644 "${DIST_DIR}/${pkgname}-${pkgver}/nsswitch.conf" "${pkgdir}/etc/nsswitch.conf"
|
||||
install -m644 "${distdir}/nsswitch.conf" "${pkgdir}/etc/nsswitch.conf"
|
||||
fi
|
||||
|
||||
tar -xf "${DIST_DIR}/${pkgname}-${pkgver}/tzdata2024a.tar.gz"
|
||||
tar -xf "${distdir}/tzdata2024a.tar.gz"
|
||||
ZONEINFO=${pkgdir}/usr/share/zoneinfo
|
||||
mkdir -pv $ZONEINFO/{posix,right}
|
||||
for tz in etcetera southamerica northamerica europe africa antarctica \
|
||||
@@ -112,7 +112,7 @@ src_install() {
|
||||
unset ZONEINFO
|
||||
|
||||
if [ ! -f /etc/ld.so.conf ]; then
|
||||
install -m644 "${DIST_DIR}/${pkgname}-${pkgver}/ld.so.conf" "${pkgdir}/etc/ld.so.conf"
|
||||
install -m644 "${distdir}/ld.so.conf" "${pkgdir}/etc/ld.so.conf"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user