mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 11:54:38 +08:00
37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakraos.org
|
|
#
|
|
|
|
pkgname=chakra-hardware-detection
|
|
pkgver=20150311
|
|
pkgrel=1
|
|
branch="master"
|
|
pkgdesc="Hardware detection scripts for Chakra"
|
|
arch=('any')
|
|
url="http://www.chakraos.org"
|
|
depends=('bc' 'util-linux' 'chd-nvidia>=346' 'chd-nvidia<347' 'chd-nvidia-340xx' 'chd-nvidia-304xx'
|
|
'chd-catalyst' 'dmidecode')
|
|
license=('GPL')
|
|
source=("${pkgname}-${pkgver}.tar.gz"::"http://gitorious.org/chakra/chakra-hardware-detection/archive-tarball/${branch}")
|
|
md5sums=('fd755b33afcb8a25f383824e484045e7')
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
mksource() {
|
|
if [ "${1}" == "" ] ; then
|
|
git clone https://gitorious.org//chakra/${pkgname}.git ${pkgname}-${pkgver}
|
|
else
|
|
git clone -b "${1}" https://gitorious.org//chakra/${pkgname}.git ${pkgname}-${pkgver}
|
|
fi
|
|
pushd ${pkgname}-${pkgver}
|
|
popd
|
|
tar -cvJf ${pkgname}-${pkgver}.tar.xz ${pkgname}-${pkgver}/*
|
|
md5sum ${pkgname}-${pkgver}.tar.xz
|
|
}
|
|
package(){
|
|
cd "${srcdir}/chakra-${pkgname}"
|
|
|
|
make install DESTDIR="${pkgdir}"
|
|
}
|
|
|