summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxsmile2017-09-13 12:10:30 +0200
committerxsmile2017-09-13 12:10:30 +0200
commit8a5dc7a473dc3b8127d5f968c0397f6d651ac22d (patch)
tree28ed52f216fdcc98b6eb93b35ad066c30776e233
parent940f9b84092fb2ec4994effb66cab3ba2aa857fe (diff)
downloadaur-8a5dc7a473dc3b8127d5f968c0397f6d651ac22d.tar.gz
added LICENSE, minor PKGBUILD changes
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD55
2 files changed, 34 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 697cae85154..54e2de70811 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun May 7 17:26:00 UTC 2017
+# Wed Sep 13 10:10:21 UTC 2017
pkgbase = uefitool-git
- pkgdesc = UEFI firmware image viewer and editor, UEFIExtract, UEFIFind and UEFIPatch
+ pkgdesc = UEFI firmware image viewer and editor and utilities
pkgver = r171.75225ec
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/LongSoft/UEFITool
arch = any
license = BSD
@@ -12,8 +12,7 @@ pkgbase = uefitool-git
depends = qt5-base
provides = uefitool
conflicts = uefitool
- replaces = uefitool
- source = uefitool::git+https://github.com/LongSoft/UEFITool.git#branch=master
+ source = uefitool::git+https://github.com/LongSoft/UEFITool.git
source = uefipatch.cpp.patch
md5sums = SKIP
md5sums = 5c2df7cd74307fa46c13cd10159951da
diff --git a/PKGBUILD b/PKGBUILD
index de9681f90c5..d5695af92b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,59 @@
# Maintainer: xsmile <sascha_r at gmx dot de>
-_gitbranch='master'
-_tools=('UEFIExtract' 'UEFIFind' 'UEFIPatch' 'UEFIReplace')
+
pkgname=uefitool-git
+_pkgname=uefitool
+_tools=('UEFIExtract' 'UEFIFind' 'UEFIPatch' 'UEFIReplace')
pkgver=r171.75225ec
-pkgrel=1
-pkgdesc='UEFI firmware image viewer and editor, UEFIExtract, UEFIFind and UEFIPatch'
+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%-git}")
-conflicts=("${pkgname%-git}")
-replaces=("${pkgname%-git}")
-source=("${pkgname%-git}::git+${url}.git#branch=${_gitbranch}"
+provides=(${_pkgname})
+conflicts=(${_pkgname})
+source=("${_pkgname}::git+${url}.git"
'uefipatch.cpp.patch')
md5sums=('SKIP'
'5c2df7cd74307fa46c13cd10159951da')
pkgver() {
- cd "${srcdir}/${pkgname%-git}/"
+ 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"
+ patch -p1 -i "$srcdir/uefipatch.cpp.patch"
}
-build() {
- # uefitool
- cd "${srcdir}/${pkgname%-git}"
- qmake-qt5
+_build() {
+ qmake QMAKE_CFLAGS_RELEASE="$CFLAGS" QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS"
make
- # other tools
+}
+
+build() {
+ # UEFITool
+ cd "$srcdir/$_pkgname"
+ _build
+ # Other tools
for tool in "${_tools[@]}"; do
- cd "${srcdir}/${pkgname%-git}/${tool}"
- qmake-qt5
- make
+ cd "$srcdir/$_pkgname/$tool"
+ _build
done
}
package() {
- # uefitool
- cd "${srcdir}/${pkgname%-git}"
- install -D -m755 "${url##*/}" "${pkgdir}/usr/bin/${pkgname%-git}"
- # other tools
+ # UEFITool
+ cd "$srcdir/$_pkgname"
+ install -D -m755 UEFITool "$pkgdir/usr/bin/$_pkgname"
+ # Other tools
for tool in "${_tools[@]}"; do
- install -D -m755 "${tool}/${tool}" "${pkgdir}/usr/bin/${tool,,}"
+ install -D -m755 "$tool/$tool" "$pkgdir/usr/bin/${tool,,}"
done
- # default patches.txt file
- install -D -m644 "${_tools[2]}/patches.txt" "${pkgdir}/usr/share/${pkgname%-git}/patches.txt"
+ # Install patches.txt to pre-set path
+ install -D -m644 UEFIPatch/patches.txt "$pkgdir/usr/share/$_pkgname/patches.txt"
+ # License
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}