From 022604514e82b76e4035b409f6f57f6c6336000d Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 26 Jul 2021 14:43:40 +0200 Subject: [PATCH] initial version --- .SRCINFO | 17 +++++++++++++++++ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ sha512sums | 4 ++++ 3 files changed, 61 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 sha512sums diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..fdbd370 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = facetimehd-calibration-files + pkgdesc = Sensor calibration files for facetimehd webcam + pkgver = 5.1.5769 + pkgrel = 1 + url = https://github.com/patjak/bcwc_pcie/wiki/Extracting-the-sensor-calibration-files + arch = x86_64 + license = unknown + makedepends = unzip + makedepends = unrar + noextract = bootcamp5.1.5769.zip + options = !strip + source = https://download.info.apple.com/Mac_OS_X/031-30890-20150812-ea191174-4130-11e5-a125-930911ba098f/bootcamp5.1.5769.zip + source = sha512sums + sha512sums = 96ecc8e55a74de85fbb3026a05eb49ad4dbc8a48f0aafebd3b27a6a47ce53df1179b8442ce77320f643df7e67075d8430e197dc43258b0a6ba47f58cfa947132 + sha512sums = ecece7869de1e28f7b7abe9f4bd1aeb376c00a40b9676a7942845778e9d250510b68bfe209901e405f5bbc573c32b5e115c646b133f339fcbbb60bc2ec950886 + +pkgname = facetimehd-calibration-files diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b113271 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Your Name +pkgname=facetimehd-calibration-files +pkgver=5.1.5769 +pkgrel=1 +pkgdesc="Sensor calibration files for facetimehd webcam" +arch=('x86_64') +url="https://github.com/patjak/bcwc_pcie/wiki/Extracting-the-sensor-calibration-files" +license=('unknown') +depends=() +makedepends=("unzip" "unrar") +options=(!strip) +source=("https://download.info.apple.com/Mac_OS_X/031-30890-20150812-ea191174-4130-11e5-a125-930911ba098f/bootcamp$pkgver.zip" + "sha512sums") +noextract=("bootcamp$pkgver.zip") +sha512sums=('96ecc8e55a74de85fbb3026a05eb49ad4dbc8a48f0aafebd3b27a6a47ce53df1179b8442ce77320f643df7e67075d8430e197dc43258b0a6ba47f58cfa947132' + 'ecece7869de1e28f7b7abe9f4bd1aeb376c00a40b9676a7942845778e9d250510b68bfe209901e405f5bbc573c32b5e115c646b133f339fcbbb60bc2ec950886') + +prepare() { + unzip -o -q -j "bootcamp$pkgver.zip" BootCamp/Drivers/Apple/AppleCamera64.exe + unrar -o+ -idq x AppleCamera64.exe AppleCamera.sys +} + +build() { + dd bs=1 skip=1663920 count=33060 if=AppleCamera.sys of=9112_01XX.dat + dd bs=1 skip=1644880 count=19040 if=AppleCamera.sys of=1771_01XX.dat + dd bs=1 skip=1606800 count=19040 if=AppleCamera.sys of=1871_01XX.dat + dd bs=1 skip=1625840 count=19040 if=AppleCamera.sys of=1874_01XX.dat +} + +check() { + sha512sum -c sha512sums +} + +package() { + mkdir -p "$pkgdir/usr/lib/firmware/facetimehd" + install -m 644 9112_01XX.dat "$pkgdir/usr/lib/firmware/facetimehd" + install -m 644 1771_01XX.dat "$pkgdir/usr/lib/firmware/facetimehd" + install -m 644 1871_01XX.dat "$pkgdir/usr/lib/firmware/facetimehd" + install -m 644 1874_01XX.dat "$pkgdir/usr/lib/firmware/facetimehd" +} diff --git a/sha512sums b/sha512sums new file mode 100644 index 0000000..1f1ac22 --- /dev/null +++ b/sha512sums @@ -0,0 +1,4 @@ +7f8ff3cd5e42e367b9fe3ac0ffca8e6a81c0b1235b687ef8f66b9c41c3a9ca2d22dba84a6bc8f0fdba065e0bec740e21fd423dc062fb3f7c002d59ad6b857ad5 1771_01XX.dat +f90ee98b75fcd6a7f349264e98e1341000406baeb517d3a266d6946ea7e613a3686801874f0fc689cc73d2b6877e0ce5972f2e869312b79dcef2512db068cad7 1871_01XX.dat +a18388a9cf4b6a93054de0ffc44378a80911b6dc65c1e70e7b48f7522d042b5218f49a2d38d25ec1cff698c9913d381ace8612d78c246668b8ebc0e4817f4971 1874_01XX.dat +929c62786e155bfcac6202358407d3dcd1133eb5194ae870a7999f8a1594e7172810e54e8984b71e87cb4553d5419db4bb347e98696ed0e952a5b7b2fbf50631 9112_01XX.dat