Skip to content
Snippets Groups Projects
Verified Commit aabb2463 authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

user/rfkill: don't use Git for version

parent f7e640d6
No related branches found
No related tags found
No related merge requests found
......@@ -2,17 +2,18 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=rfkill
pkgver=0.5
pkgrel=0
pkgrel=1
pkgdesc="Tool to query the state of the rfkill switches and buttons"
url="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill"
arch="all"
license="GPL"
options="!check" # No test suite.
license="MIT"
depends=""
makedepends=""
install=""
options="!check"
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/network/rfkill/rfkill-$pkgver.tar.xz"
source="https://www.kernel.org/pub/software/network/rfkill/rfkill-$pkgver.tar.xz
dont-use-git.patch"
build() {
cd "$builddir"
......@@ -24,4 +25,5 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="6ad4d28e7bf7ec69ec6a600cd774b7b3c60e85849ae3fca0f5509ed6a283ed5656d37cfd770df45ff1ceca59edd814807d116b30e199fca303baf496441419d7 rfkill-0.5.tar.xz"
sha512sums="6ad4d28e7bf7ec69ec6a600cd774b7b3c60e85849ae3fca0f5509ed6a283ed5656d37cfd770df45ff1ceca59edd814807d116b30e199fca303baf496441419d7 rfkill-0.5.tar.xz
635d948b4addfb418a3dd1a0f2482b15e5dae7e161f3fc1a430a2052d2aeb4e0d0a8c7663e27d1f8741920a497f0e36bac949f14544f5157f037315822a08d04 dont-use-git.patch"
This is required because packages.git is a git repo.
--- rfkill-0.5/version.sh 2013-05-03 11:24:22.000000000 +0000
+++ rfkill-0.5/version.sh 2018-03-05 02:54:41.510838411 +0000
@@ -12,19 +12,6 @@
if test "x$SUFFIX" != 'x'; then
v="$VERSION$SUFFIX"
-elif head=`git rev-parse --verify HEAD 2>/dev/null`; then
- git update-index --refresh --unmerged > /dev/null
- descr=$(git describe 2>/dev/null || echo "v$VERSION")
-
- # on git builds check that the version number above
- # is correct...
- [ "${descr%%-*}" = "v$VERSION" ] || exit 2
-
- echo -n 'const char rfkill_version[] = "' > "$OUT"
- v="${descr#v}"
- if git diff-index --name-only HEAD | read dummy ; then
- v="$v"-dirty
- fi
else
v="$VERSION"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment