Stop packaging configs.

This commit is contained in:
Blaž Hrastnik 2020-01-10 10:13:54 +09:00
parent ec0c9b8a9f
commit 4c2c5bf397
6 changed files with 26 additions and 42 deletions

View file

@ -4,11 +4,11 @@ Primarily tested on Arch Linux + Surface Laptop 13" (Intel).
## Instructions
- Building firmware & configs
- Building firmware
```
cd surface
cd surface-ipts-firmware
makepkg -s
sudo pacman -U surface-firmware*.pkg.tar.* surface-config*.pkg.tar.*
sudo pacman -U surface-ipts-firmware*.pkg.tar.*
```
- Building the patched kernel (includes ACPI module)

View file

@ -10,7 +10,7 @@ echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
export GPG_TTY=$(tty)
# Build the packages as `build' user
pushd surface
pushd surface-ipts-firmware
makepkg -f --syncdeps --skippgpcheck --noconfirm
# Sign as a separate step (makepkg -s needs pinentry)
makepkg --packagelist | xargs -L1 gpg --detach-sign --batch --no-tty --pinentry-mode=loopback --passphrase $GPG_PASSPHRASE -u 5B574D1B513F9A05

View file

@ -0,0 +1,21 @@
# Maintainer: Blaž Hrastnik <blaz@mxxn.io>
pkgname=surface-ipts-firmware
pkgver=1.0.0
pkgrel=1
arch=(any)
pkgdesc="Surface firmware"
url="http://github.com/linux-surface/surface-ipts-firmware"
license=(GPL2)
_srcname=source
_srcbranch='master'
source=(
"$_srcname::git+https://github.com/linux-surface/surface-ipts-firmware.git#branch=$_srcbranch"
)
sha256sums=('SKIP')
package() {
cd ${srcdir}/${_srcname}/
install -d "${pkgdir}/usr/lib/firmware/"
cp -r firmware/* "${pkgdir}/usr/lib/firmware/"
}

View file

@ -0,0 +1 @@
Builds `surface-ipts-firmware`

View file

@ -1,37 +0,0 @@
# Maintainer: Blaž Hrastnik <blaz@mxxn.io>
pkgbase=surface
pkgver=1.0.0
pkgrel=1
arch=(any)
url="http://github.com/linux-surface/linux-surface"
license=(GPL2)
_srcname=source
_srcbranch='master'
source=(
"$_srcname::git+https://github.com/linux-surface/linux-surface.git#branch=$_srcbranch"
)
sha256sums=('SKIP')
_package-firmware() {
pkgdesc="Surface firmware"
cd ${srcdir}/${_srcname}/
install -d "${pkgdir}/usr/lib/firmware/"
cp -r firmware/* "${pkgdir}/usr/lib/firmware/"
}
_package-config() {
pkgdesc="Surface config files"
cd ${srcdir}/${_srcname}/
cp -r root/etc "${pkgdir}/etc/"
install -d "${pkgdir}/usr/lib/"
cp -r root/lib/* "${pkgdir}/usr/lib/"
}
pkgname=("$pkgbase-firmware" "$pkgbase-config")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
_package${_p#$pkgbase}
}"
done

View file

@ -1 +0,0 @@
Builds `surface-firmware` and `surface-config`.