diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..255ffb5739b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = surface-uefi-firmware-git + pkgdesc = Scripts to prepare UEFI firmware updates for Microsoft Surface + pkgver = r11.ad1a6ae + pkgrel = 1 + url = https://github.com/linux-surface/surface-uefi-firmware + arch = any + license = unknown + makedepends = git + depends = gcab + depends = msitools + depends = dos2unix + provides = surface-uefi-firmware + source = git+https://github.com/linux-surface/surface-uefi-firmware.git + md5sums = SKIP + +pkgname = surface-uefi-firmware-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0cdab78757f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +surface-uefi-firmware/ +*.tar*
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b31af7172aa2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Sam L. Yes <samlukeyes123 at gmail dot com> + +pkgname=surface-uefi-firmware-git +_repo=surface-uefi-firmware +pkgver=r11.ad1a6ae +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") +md5sums=(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 -d ${pkgdir}/usr/{bin,share/$_repo} + install -m755 prep.sh ${pkgdir}/usr/bin/surface-firmware-prep + install -m755 repack.sh ${pkgdir}/usr/bin/surface-firmware-repack + install -m644 template.metainfo.xml ${pkgdir}/usr/share/$_repo +}
\ No newline at end of file |