initial version

This commit is contained in:
Carlos Galindo 2021-07-26 14:43:40 +02:00
commit 022604514e
3 changed files with 61 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -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

40
PKGBUILD Normal file
View file

@ -0,0 +1,40 @@
# Maintainer: Your Name <youremail@domain.com>
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"
}

4
sha512sums Normal file
View file

@ -0,0 +1,4 @@
7f8ff3cd5e42e367b9fe3ac0ffca8e6a81c0b1235b687ef8f66b9c41c3a9ca2d22dba84a6bc8f0fdba065e0bec740e21fd423dc062fb3f7c002d59ad6b857ad5 1771_01XX.dat
f90ee98b75fcd6a7f349264e98e1341000406baeb517d3a266d6946ea7e613a3686801874f0fc689cc73d2b6877e0ce5972f2e869312b79dcef2512db068cad7 1871_01XX.dat
a18388a9cf4b6a93054de0ffc44378a80911b6dc65c1e70e7b48f7522d042b5218f49a2d38d25ec1cff698c9913d381ace8612d78c246668b8ebc0e4817f4971 1874_01XX.dat
929c62786e155bfcac6202358407d3dcd1133eb5194ae870a7999f8a1594e7172810e54e8984b71e87cb4553d5419db4bb347e98696ed0e952a5b7b2fbf50631 9112_01XX.dat