mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:57:14 +08:00
41 lines
1.2 KiB
Bash
41 lines
1.2 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>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=libx86emu
|
|
pkgver=1.1
|
|
_minorver=6.8
|
|
pkgrel=1
|
|
pkgdesc="x86 emulation library"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.opensuse.org"
|
|
license=('BSD')
|
|
depends=('glibc')
|
|
makedepends=('rpmextract')
|
|
options=('!emptydirs')
|
|
source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/${pkgname}-${pkgver}-${_minorver}.src.rpm")
|
|
build() {
|
|
|
|
cd ${srcdir}
|
|
rpmextract.sh ${pkgname}-${pkgver}-${_minorver}.src.rpm || return 1
|
|
tar -xjf ${pkgname}-${pkgver}.tar.bz2
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
# Fix Makefile using /usr/lib64 instead of /usr/lib - it broke x86_64, possibly i686 too.
|
|
# Comment if this fix breaks it - untested on i686 or anything special.
|
|
sed -i 's_usr/lib64_usr/lib_' Makefile
|
|
|
|
make -j1 || return 1
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|
|
md5sums=('848e5aeb5885b2f71364d68d91080b94')
|