arch-pkgs/dracut-alpm-hook/PKGBUILD

28 lines
1 KiB
Text
Raw Normal View History

# Maintainer: George Rawlinson <george@rawlinson.net.nz>
pkgname=dracut-alpm-hook
pkgver=1.0.0
pkgrel=1
pkgdesc='alpm hooks for dracut'
url='https://wiki.archlinux.org/index.php/Dracut'
arch=('any')
license=('GPL')
depends=('dracut')
source=("$pkgname-$pkgver.tar.gz::https://github.com/grawlinson/dracut-alpm-hook/archive/$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.asc::https://github.com/grawlinson/dracut-alpm-hook/releases/download/$pkgver/$pkgver.tar.gz.asc")
sha512sums=('e186fd69f401ff04f766e6eae056f2bfaeb7437bc71381b9465c9c341e9c92f1f555fcbca677cd7dfcfcb964160f8aa1f9f81babe30f3f534b7afe59197d716e'
'SKIP')
validpgpkeys=('034D823DA2055BEE6A6BF0BB25EA6900D9EA5EBC') # George Rawlinson <george@rawlinson.net.nz>
package() {
cd "$srcdir/$pkgname-$pkgver/hooks"
install -Dm644 -t "${pkgdir}/usr/share/libalpm/hooks" \
60-dracut-remove.hook \
90-dracut-install.hook
cd "$srcdir/$pkgname-$pkgver/scripts"
install -Dm755 -t "${pkgdir}/usr/share/libalpm/scripts" \
dracut-remove \
dracut-install
}