diff options
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | uefipatch.cpp.patch | 18 |
3 files changed, 23 insertions, 51 deletions
@@ -1,21 +1,15 @@ -# Generated by mksrcinfo v8 -# Wed Sep 13 10:10:21 UTC 2017 pkgbase = uefitool-git pkgdesc = UEFI firmware image viewer and editor and utilities - pkgver = r171.75225ec + pkgver = r228.44cafeb pkgrel = 2 url = https://github.com/LongSoft/UEFITool arch = any license = BSD makedepends = git - makedepends = qt5-base depends = qt5-base provides = uefitool conflicts = uefitool - source = uefitool::git+https://github.com/LongSoft/UEFITool.git - source = uefipatch.cpp.patch + source = uefitool::git+https://github.com/LongSoft/UEFITool.git#branch=old_engine md5sums = SKIP - md5sums = 5c2df7cd74307fa46c13cd10159951da pkgname = uefitool-git - @@ -1,35 +1,31 @@ -# Maintainer: xsmile <sascha_r at gmx dot de> +# Maintainer: xsmile <> pkgname=uefitool-git _pkgname=uefitool -_tools=('UEFIExtract' 'UEFIFind' 'UEFIPatch' 'UEFIReplace') -pkgver=r171.75225ec +_tools=(UEFIPatch UEFIReplace) +pkgver=r228.44cafeb pkgrel=2 pkgdesc='UEFI firmware image viewer and editor and utilities' -arch=('any') -url='https://github.com/LongSoft/UEFITool' -license=('BSD') -depends=('qt5-base') -makedepends=('git' 'qt5-base') -provides=(${_pkgname}) -conflicts=(${_pkgname}) -source=("${_pkgname}::git+${url}.git" - 'uefipatch.cpp.patch') -md5sums=('SKIP' - '5c2df7cd74307fa46c13cd10159951da') +arch=(any) +url=https://github.com/LongSoft/UEFITool +license=(BSD) +depends=(qt5-base) +makedepends=(git) +provides=($_pkgname) +conflicts=($_pkgname) +source=("${_pkgname}::git+${url}.git#branch=old_engine") +md5sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -prepare() { - # pre-set the path to patches.txt in UEFIPatch - patch -p1 -i "$srcdir/uefipatch.cpp.patch" -} - _build() { - qmake QMAKE_CFLAGS_RELEASE="$CFLAGS" QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" + qmake \ + QMAKE_CFLAGS_RELEASE="$CFLAGS" \ + QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" \ + QMAKE_LFLAGS_RELEASE="$LDFLAGS" make } @@ -47,13 +43,13 @@ build() { package() { # UEFITool cd "$srcdir/$_pkgname" - install -D -m755 UEFITool "$pkgdir/usr/bin/$_pkgname" + install -Dm755 UEFITool "$pkgdir/usr/bin/$_pkgname" # Other tools for tool in "${_tools[@]}"; do - install -D -m755 "$tool/$tool" "$pkgdir/usr/bin/${tool,,}" + install -Dm755 "$tool/$tool" "$pkgdir/usr/bin/${tool,,}" done - # Install patches.txt to pre-set path - install -D -m644 UEFIPatch/patches.txt "$pkgdir/usr/share/$_pkgname/patches.txt" + # Patch files + install -Dm644 UEFIPatch/patches{,-misc}.txt -t "$pkgdir/usr/share/$_pkgname/" # License - install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$_pkgname/" } diff --git a/uefipatch.cpp.patch b/uefipatch.cpp.patch deleted file mode 100644 index 7bd86073ea84..000000000000 --- a/uefipatch.cpp.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/uefitool/UEFIPatch/uefipatch.cpp 2016-10-07 23:39:16.579188249 +0200 -+++ b/uefitool/UEFIPatch/uefipatch.cpp 2016-10-07 23:40:00.707034736 +0200 -@@ -27,13 +27,13 @@ - - UINT8 UEFIPatch::patchFromFile(QString path) - { -- QFileInfo patchInfo = QFileInfo("patches.txt"); -+ QFileInfo patchInfo = QFileInfo("/usr/share/uefitool/patches.txt"); - - if (!patchInfo.exists()) - return ERR_INVALID_FILE; - - QFile file; -- file.setFileName("patches.txt"); -+ file.setFileName("/usr/share/uefitool/patches.txt"); - - if (!file.open(QFile::ReadOnly | QFile::Text)) - return ERR_INVALID_FILE; |