diff options
author | Kyle De'Vir | 2019-01-14 15:14:48 +1000 |
---|---|---|
committer | Kyle De'Vir | 2019-01-14 15:14:48 +1000 |
commit | 78e7d76284c45b8863d779cc647369c8f1dc3aeb (patch) | |
tree | 73e5ce82d5cdaf32a1bcfb1e5b287bb944e42335 /PKGBUILD | |
parent | 54b730827425531056960f930f66d0d244341b5b (diff) | |
download | aur-78e7d76284c45b8863d779cc647369c8f1dc3aeb.tar.gz |
414 ~ add Arch Linux hook support
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Maintainer: Kyle De'Vir (QuartzDragon) <kyle[dot]devir[at]mykolab[dot]com> pkgname=bcachefs-tools-git -pkgver=395 +pkgver=414 pkgrel=1 pkgdesc="bcachefs filesystem utilities" url="https://evilpiepirate.org/git/bcachefs-tools.git/" @@ -11,8 +11,10 @@ license=("GPL2") provides=("bcachefs-tools") makedepends=("git" "libscrypt" "libsodium" "attr" "libutil-linux" "keyutils" "pkgconf" "zlib" "liburcu") -source=("git+https://evilpiepirate.org/git/bcachefs-tools") -sha512sums=('SKIP') +source=("git+https://evilpiepirate.org/git/bcachefs-tools" + "ad41c2fb76a96f772d75f3b4b7687fcd29aa0574.patch") +sha512sums=('SKIP' + '0468db1a0b50fd368c0ded997c027ae87178f53293543151510f9683f3435c949462ee5c5f57fc1b790d304a01f2c9ece1cb893b6afc5f6e285ea39d01a95a24') pkgver() { cd bcachefs-tools @@ -20,11 +22,13 @@ pkgver() { echo $(git rev-list --count HEAD) } -build() { +prepare() { cd bcachefs-tools + patch -Np1 < ../ad41c2fb76a96f772d75f3b4b7687fcd29aa0574.patch +} - #export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" - #export CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" +build() { + cd bcachefs-tools make } @@ -33,4 +37,6 @@ package() { cd bcachefs-tools make DESTDIR="${pkgdir}" PREFIX="/usr" ROOT_SBINDIR="/usr/bin" INITRAMFS_DIR="/etc/initcpio" install + install -Dm644 "arch/etc/initcpio/hooks/bcachefs" "${pkgdir}/etc/initcpio/hooks/bcachefs" + install -Dm644 "arch/etc/initcpio/install/bcachefs" "${pkgdir}/etc/initcpio/install/bcachefs" } |