diff options
author | graysky | 2015-06-08 17:57:33 -0400 |
---|---|---|
committer | graysky | 2015-06-08 17:57:33 -0400 |
commit | 43dde25b6a226f7e97957e213c03b77ac77bd1aa (patch) | |
tree | 3f965bb0dbf8ae8ac5c13d9db223c661189c6beb | |
download | aur-43dde25b6a226f7e97957e213c03b77ac77bd1aa.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | athcool.service | 12 | ||||
-rw-r--r-- | non-verbose.patch | 12 |
4 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..04c50f199c21 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = athcool + pkgdesc = Enables powersaving mode on AMD Duron/Athlon/Athlon XP processors. + pkgver = 0.3.12 + pkgrel = 7 + url = http://members.jcom.home.ne.jp/jacobi/linux/softwares.html#athcool + arch = i686 + license = GPL + source = http://members.jcom.home.ne.jp/jacobi/linux/files/athcool-0.3.12.tar.gz + source = non-verbose.patch + source = athcool.service + sha256sums = 8a80654cb616064d60e6188fe6d426fe104a439930fceab865930bf1c9ffbbc9 + sha256sums = ba239c3887502ee7986de6a1707c48cbc772053401dc6c287b9c37aee06e24e5 + sha256sums = fa80fd0c1b52c0103bc3581969d328734cf19ae509e81cbd6aa3e6d7d4283bab + +pkgname = athcool + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eecb5c1f1c4c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer graysky <graysky AT archlnux.us> +pkgname=athcool +pkgver=0.3.12 +pkgrel=7 +pkgdesc="Enables powersaving mode on AMD Duron/Athlon/Athlon XP processors." +url="http://members.jcom.home.ne.jp/jacobi/linux/softwares.html#athcool" +license='GPL' +arch=('i686') +source=("http://members.jcom.home.ne.jp/jacobi/linux/files/$pkgname-$pkgver.tar.gz" +'non-verbose.patch' +"$pkgname.service") +sha256sums=('8a80654cb616064d60e6188fe6d426fe104a439930fceab865930bf1c9ffbbc9' +'ba239c3887502ee7986de6a1707c48cbc772053401dc6c287b9c37aee06e24e5' +'fa80fd0c1b52c0103bc3581969d328734cf19ae509e81cbd6aa3e6d7d4283bab') + +prepare() { + cd "$pkgname-$pkgver" + + # suppress superfluous warning on start/stop + patch -i "$srcdir/non-verbose.patch" + + # move binaries to /usr/bin and fix build + sed -i -e '/sbindir =/ s,\/sbin,/\bin,' \ + -i -e '/LIBS =/ s,-lpci,-lpci -lz,' Makefile +} + +build() { + cd "$pkgname-$pkgver" + make +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 "$srcdir"/$pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service" +} diff --git a/athcool.service b/athcool.service new file mode 100644 index 000000000000..fb80233804bd --- /dev/null +++ b/athcool.service @@ -0,0 +1,12 @@ +[Unit] +Description=Athcool +Wants=local-fs.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/athcool on +ExecStop=/usr/bin/athcool off + +[Install] +WantedBy=multi-user.target diff --git a/non-verbose.patch b/non-verbose.patch new file mode 100644 index 000000000000..187bfec15d11 --- /dev/null +++ b/non-verbose.patch @@ -0,0 +1,12 @@ +--- a/athcool.c 2005-02-10 00:58:12.000000000 -0500 ++++ b/athcool.c 2013-09-16 08:40:49.158674011 -0400 +@@ -464,7 +464,8 @@ + + if (fixup) { mode |= ATHLONPM_FIXUP; } + +- print_warnings(); ++ /* suppress superfluous warning */ ++ /* print_warnings(); */ + + if ( iopl( 3 ) < 0 ) { + printf( "%s : must run as root. exit\n", argv[0] ); |