updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / tpc / PKGBUILD
blob365faca1bc6861f1f88a3daee119f1f53222a75f
1 # Maintainer: <kfgz at interia dot pl>
3 pkgname=tpc
4 pkgver=0.41
5 pkgrel=1
6 pkgdesc="Tool for undervolting/overclocking Family 11h (K8L) and Family 10h (K10) AMD processors."
7 arch=('i686' 'x86_64')
8 url="http://amdath800.dyndns.org/amd/"
9 license=('unknown')
10 depends=('gcc-libs')
11 install=tpc.install
12 source=(http://amdath800.dyndns.org/amd/${pkgname}/${pkgname}-${pkgver}.tar.gz)
13 md5sums=('ae57fc81a3ab950bae02edf3ccd44598')
15 build() {
16   cd ${srcdir}/src
18   if [ "${CARCH}" = "x86_64" ]; then 
19    c++ -m64 *.cpp -o tpc
20   else
21    c++ -m32 -D_FILE_OFFSET_BITS=64 *.cpp -o tpc
22   fi 
25 package() {
26   install -dm755 ${pkgdir}/usr/{bin,share/doc/tpc}
27   install -m755 ${srcdir}/src/tpc ${pkgdir}/usr/bin
28   install -m644 ${srcdir}/doc/readme.pdf ${pkgdir}/usr/share/doc/tpc