58 lines
1.8 KiB
Bash
58 lines
1.8 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
# Based on sbsigntools package
|
|
|
|
pkgname=sbsigntool
|
|
pkgver=0.9.2
|
|
_debver=0.9.2
|
|
_debrel=2
|
|
pkgrel=3
|
|
pkgdesc="Tools to add signatures to EFI binaries and Drivers"
|
|
arch=('x86_64' 'i686')
|
|
url="https://tracker.debian.org/pkg/sbsigntool"
|
|
license=('custom:GPL-3+OpenSSL-Linking-Exception')
|
|
makedepends=('gnu-efi-libs' 'help2man' 'intltool' 'quilt')
|
|
depends=('libutil-linux' 'libressl')
|
|
replaces=('sbsigntools')
|
|
conflicts=('sbsigntools')
|
|
provides=('sbsigntools')
|
|
source=("https://deb.debian.org/debian/pool/main/s/sbsigntool/sbsigntool_$pkgver.orig.tar.gz"
|
|
"https://deb.debian.org/debian/pool/main/s/sbsigntool/sbsigntool_$_debver-$_debrel.debian.tar.xz"
|
|
'libressl.patch')
|
|
sha512sums=('5b27dea3678a41a09af3eb101c3bde2c561b25c9514dba261411f3f789ed3c998c5bc5401039717014527dd00a426d94d39b1f2c4b3cbc1a49c0067143ef0943'
|
|
'e2fe8eca518880ddf0c85317ead1de30b87e07a7a936d19ed36c50315030a52d990bc2873cbb45a12be516d6fd5c731bbb4503e4572399edb3c238edac28d1b5'
|
|
'9602831135773b34ee9264bd94bb6491d03965ce90b808b35721dceda65af46cd9e53b1e5422fae76da07f3ec1b0a77b8bc60a019012cef7f1b8395ffe040d19')
|
|
|
|
prepare() {
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
|
# Debian patches
|
|
export QUILT_PATCHES=debian/patches
|
|
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
|
export QUILT_DIFF_ARGS='--no-timestamps'
|
|
|
|
mv "$srcdir"/debian .
|
|
|
|
quilt push -av
|
|
fi
|
|
|
|
patch -p1 -i ${srcdir}/libressl.patch
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix="/usr" --mandir="/usr/share/man" --sysconfdir="/etc"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 COPYING LICENSE.GPLv3 -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|