diff options
author | pyamsoft | 2022-10-18 20:36:08 -0700 |
---|---|---|
committer | pyamsoft | 2022-10-18 20:36:08 -0700 |
commit | e0825014a017763ad5079fd311af3c9b7c438b8d (patch) | |
tree | 2ee6782627e41ab1d0dd4a06a1a34f50cc791191 | |
parent | 22d3b536f79cfae70a27d6831b2d9dcca0f702ed (diff) | |
download | aur-e0825014a017763ad5079fd311af3c9b7c438b8d.tar.gz |
Patch to fix sbin path to bin
-rw-r--r-- | 00-fix-sbin.patch | 19 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 25 insertions, 2 deletions
diff --git a/00-fix-sbin.patch b/00-fix-sbin.patch new file mode 100644 index 000000000000..6ddf8dc17ca4 --- /dev/null +++ b/00-fix-sbin.patch @@ -0,0 +1,19 @@ +--- a/Makefile 2022-10-18 20:31:00.780113857 -0700 ++++ b/Makefile 2022-10-18 20:31:14.680216830 -0700 +@@ -9,13 +9,13 @@ + $(CXX) $(CXXFLAGS) $(cppfiles) -o $(name) + + install: $(name) +- mkdir -p $(DESTDIR)/usr/sbin ++ mkdir -p $(DESTDIR)/usr/bin + mkdir -p $(DESTDIR)/usr/lib/systemd/system +- install -m 540 $(name) $(DESTDIR)/usr/sbin ++ install -m 540 $(name) $(DESTDIR)/usr/bin + install -m 644 $(name).service $(DESTDIR)/usr/lib/systemd/system + + uninstall: +- rm -f $(DESTDIR)/usr/sbin/$(name) ++ rm -f $(DESTDIR)/usr/bin/$(name) + rm -f $(DESTDIR)/usr/lib/systemd/system/$(name).service + + clean: @@ -32,9 +32,10 @@ url="https://github.com/joakimkistowski/amd-disable-c6.git" # pulled from git so skip the verification check ## # shellcheck disable=SC2034 -source=("${_gitname}::git+${url}#branch=master") +source=("${_gitname}::git+${url}#branch=master" "00-fix-sbin.patch") # shellcheck disable=SC2034 -sha256sums=('SKIP') +sha256sums=('SKIP' + 'c1bb428d02994f872e4be2f282ffd5c453f4ebc714a79fc8337032d9d02c1a4a') pkgver() { # shellcheck disable=SC2154 @@ -52,6 +53,9 @@ prepare() { msg "Failed to cd into ${srcdir}/${_gitname}" return 1 } + + # Apply patches + patch -p1 -i "${srcdir}/00-fix-sbin.patch" } package() { |