Date: Saturday, September 10, 2022 @ 19:58:12 Author: tpowa Revision: 455788
archrelease: copy trunk to testing-x86_64 Added: hdparm/repos/testing-x86_64/ hdparm/repos/testing-x86_64/PKGBUILD (from rev 455787, hdparm/trunk/PKGBUILD) hdparm/repos/testing-x86_64/pass-ldflags.patch (from rev 455787, hdparm/trunk/pass-ldflags.patch) --------------------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ pass-ldflags.patch | 11 +++++++++++ 2 files changed, 51 insertions(+) Copied: hdparm/repos/testing-x86_64/PKGBUILD (from rev 455787, hdparm/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2022-09-10 19:58:12 UTC (rev 455788) @@ -0,0 +1,40 @@ +# Maintainer: Paul Mattal <p...@archlinux.org> + +pkgname=hdparm +pkgver=9.65 +pkgrel=1 +pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters" +arch=(x86_64) +depends=('glibc') +source=(https://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz + pass-ldflags.patch) +license=('BSD') +url="https://sourceforge.net/projects/hdparm/" +sha512sums=('4ffc8902b90cee10d68af8ddb9f3b9454d523ecd49cdaaed254b4d7a999462a8ad5ec1bb5d7684b09fefa41b5941ab533b167dad290003b51c795a633ca88913' + '4103276304a858a9540ce173f22c5eb64cadac36b5cd38d9396d63fa721a579e16d4d0f84e3c627d0620c42815c437abf14c9657fdb1a28e8263a52a0bb26c4f') + +prepare() { + cd ${pkgname}-${pkgver} + # Enable FULL RELRO + patch -Np1 -i "$srcdir"/pass-ldflags.patch +} + +build() { + cd ${pkgname}-${pkgver} + make +} + +package() { + cd ${pkgname}-${pkgver} + # install + mkdir -p "${pkgdir}"/usr/bin + make DESTDIR="${pkgdir}" sbindir=/usr/bin install + install -m755 contrib/idectl "${pkgdir}"/usr/bin + install -m755 contrib/ultrabayd "${pkgdir}"/usr/bin + + install -D -m 0644 $srcdir/$pkgname-$pkgver/wiper/README.txt "$pkgdir"/usr/share/doc/wiper/README.txt + install -D -m 0755 $srcdir/$pkgname-$pkgver/wiper/wiper.sh "$pkgdir"/usr/bin/wiper.sh + + #install license file + install -D -m 644 LICENSE.TXT "$pkgdir"/usr/share/licenses/hdparm/LICENSE.TXT +} Copied: hdparm/repos/testing-x86_64/pass-ldflags.patch (from rev 455787, hdparm/trunk/pass-ldflags.patch) =================================================================== --- testing-x86_64/pass-ldflags.patch (rev 0) +++ testing-x86_64/pass-ldflags.patch 2022-09-10 19:58:12 UTC (rev 455788) @@ -0,0 +1,11 @@ +diff -aur hdparm-9.58/Makefile hdparm-9.58.new/Makefile +--- hdparm-9.60/Makefile 2017-05-01 21:08:42.000000000 +0200 ++++ hdparm-9.60.new/Makefile 2019-09-22 19:19:03.783229803 +0200 +@@ -15,6 +15,7 @@ + + CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS) + ++LDFLAGS := -s ${LDFLAGS} + INSTALL = install + INSTALL_DATA = $(INSTALL) -m 644 + INSTALL_DIR = $(INSTALL) -m 755 -d