blob: 00130125c8062568e235364a2ff77dedb34f7dad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Sam L. Yes <samlukeyes123 at gmail dot com>
pkgname=surface-uefi-firmware-git
_repo=surface-uefi-firmware
pkgver=r52.47a687f
pkgrel=1
pkgdesc="Scripts to prepare UEFI firmware updates for Microsoft Surface"
arch=('any')
url="https://github.com/linux-surface/surface-uefi-firmware"
license=('unknown')
makedepends=('git')
depends=(gcab msitools dos2unix)
optdepends=()
provides=('surface-uefi-firmware')
source=("git+${url}.git")
b2sums=(SKIP)
prepare() {
sed -i "s/DIR=\$(readlink -f \$(dirname \$0))/DIR=\/usr\/share\/$_repo/" ${srcdir}/$_repo/repack.sh
}
pkgver() {
cd ${srcdir}/$_repo
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd ${srcdir}/$_repo
install -Dm755 repack.sh ${pkgdir}/usr/bin/surface-firmware-repack
}
|