core/hwinfo/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2010-06-26 02:39:38 +08:00
#
# 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=hwinfo
2012-02-24 01:52:56 +08:00
pkgver=19.1
pkgrel=1
2010-06-26 02:39:38 +08:00
pkgdesc="A simple program that lists results from the hardware detection library."
arch=('i686' 'x86_64')
url="http://www.opensuse.org"
license=('GPL2')
2011-01-09 20:04:30 +08:00
depends=('perl' 'libx86emu')
2010-06-26 02:39:38 +08:00
makedepends=('sysfsutils' 'rpmextract' 'flex')
options=('!emptydirs')
2012-02-24 01:52:56 +08:00
source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/${pkgname}-${pkgver}-1.2.src.rpm"
2010-06-26 02:39:38 +08:00
"kbd.patch")
2011-10-13 00:49:01 +08:00
build() {
cd "${srcdir}"
msg2 "Extracting source rpm..."
2012-02-24 02:02:07 +08:00
rpmextract.sh "${pkgname}-${pkgver}-1.2.src.rpm"
tar -xjf ${pkgname}-${pkgver}.tar.bz2
2011-10-13 00:49:01 +08:00
cd "${pkgname}-${pkgver}"
msg2 "Patching..."
2012-01-24 01:36:32 +08:00
patch -p0 < ../kbd.patch
msg2 "Compiling..."
# Fix Makefile using /usr/lib64 instead of /usr/lib - it broke x86_64, possibly i686 too.
# Comment if this fix breaks it.
2012-01-24 01:36:32 +08:00
#sed -i 's_usr/lib64_usr/lib_' src/hd/Makefile
#Added this from ARCH, to fix the above issue:
2012-01-24 00:36:20 +08:00
make -j1 CFLAGS+="-fPIC -I${srcdir}/${pkgname}-${pkgver}/src/hd" LIBDIR=/usr/lib
2011-10-13 00:49:01 +08:00
}
2010-06-26 02:39:38 +08:00
2011-10-13 00:49:01 +08:00
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
2012-01-24 01:36:32 +08:00
#Added this from ARCH, to fix the same issue as stated earlier:
make LIBDIR=/usr/lib DESTDIR=${pkgdir} install
# disabled the following line to add the one above
# make DESTDIR=${pkgdir} install
2010-06-26 02:39:38 +08:00
}
2012-02-24 01:52:56 +08:00
md5sums=('d882c16b44d86aff480e0f86c1ef129d'
2010-06-26 02:39:38 +08:00
'1500ecfa26f6aaf4d7967eea74e86e5d')