diff options
author | Peter Bui <pnutzh4x0r@gmail.com> | 2015-07-20 10:42:00 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-21 06:10:50 +0000 |
commit | 4cb81abb3cfd9aea37bf01a841a316911d941d23 (patch) | |
tree | fbaf61c2114e541dbc52e865536f4c7b7b99a2b6 /main/acpi/APKBUILD | |
parent | 3b372ac42200b69ce7f1cb5d71f29a6530d0ab6f (diff) | |
download | aports-4cb81abb3cfd9aea37bf01a841a316911d941d23.tar.bz2 aports-4cb81abb3cfd9aea37bf01a841a316911d941d23.tar.xz |
main/acpi: move from testing
Diffstat (limited to 'main/acpi/APKBUILD')
-rw-r--r-- | main/acpi/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/acpi/APKBUILD b/main/acpi/APKBUILD new file mode 100644 index 0000000000..ada9da72f5 --- /dev/null +++ b/main/acpi/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Peter Bui <pnutzh4x0r@gmail.com> +pkgname=acpi +pkgver=1.7 +pkgrel=0 +pkgdesc="ACPI client for battery, power, and thermal readings" +url="http://sourceforge.net/projects/acpiclient/files/acpiclient/" +arch="all" +license="GPL2" +depends= +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/acpiclient/$pkgname-$pkgver.tar.gz" + +_builddir="${srcdir}/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR"=$pkgdir" install || return 1 +} + +md5sums="b52ce4ca39bbf7000a1c2de8879f1dcb acpi-1.7.tar.gz" +sha256sums="d7a504b61c716ae5b7e81a0c67a50a51f06c7326f197b66a4b823de076a35005 acpi-1.7.tar.gz" +sha512sums="e6c96707d651eb20aa4a4c76f78891154d576ccdfaef08b5eff6094b90b62a0e97f6e35a4a996dcc3b5f0b57ee2c60542f41832039c6cbdf853ff3d022c1b609 acpi-1.7.tar.gz" |