diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-08-17 12:42:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-08-17 12:51:37 +0000 |
commit | f33126dd50d200d4f451d0fe8e9d05d35da9398c (patch) | |
tree | 1d48b375f45f524e8d166719e75717e096b56b3b /main/acpica/APKBUILD | |
parent | 064d46a722bed596f958565b1452ad3423831e14 (diff) | |
download | aports-f33126dd50d200d4f451d0fe8e9d05d35da9398c.tar.bz2 aports-f33126dd50d200d4f451d0fe8e9d05d35da9398c.tar.xz |
main/acpcia: rename from iasl and upgrade to 20120816
provide iasl as a subpackage
Diffstat (limited to 'main/acpica/APKBUILD')
-rw-r--r-- | main/acpica/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/acpica/APKBUILD b/main/acpica/APKBUILD new file mode 100644 index 0000000000..705c3f1c21 --- /dev/null +++ b/main/acpica/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Roger Pau Monne <roger.pau@entel.upc.edu> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=acpica +pkgver=20120816 +pkgrel=0 +pkgdesc="ACPI Component Architecture utilities" +url="http://www.acpica.org/" +arch="x86 x86_64" +license="custom" +depends="" +depends_dev="flex bison" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc iasl" +# license was found here: +# http://acpica.org/downloads/unix_source_code.php +source="http://www.acpica.org/download/acpica-unix-$pkgver.tar.gz + COPYING" + +_builddir="$srcdir"/acpica-unix-$pkgver + +build() { + cd "$_builddir" + + # support gcc-4.6 + sed -i -e 's/-Werror//g' \ + -e 's/remove-destination//' \ + generate/unix/Makefile \ + generate/unix/Makefile.config \ + || return 1 + + make BITSFLAG=-m32 || return 1 +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" + install -Dm644 "$srcdir"/COPYING "$pkgdir"/usr/share/licenses/acpica/COPYING +} + +iasl() { + pkgdesc="ACPI ASL compiler" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/iasl "$subpkgdir"/usr/bin/ +} + + +md5sums="eae80f528320717357b3cb5368ba580b acpica-unix-20120816.tar.gz +7af813a48b9d1ce988aa72655f0fa61f COPYING" |