hashboot/PKGBUILD

32 lines
1.0 KiB
Bash
Raw Normal View History

2015-10-04 18:24:09 -04:00
# Maintainer: xor <xor@rotce.de>
2015-10-03 14:19:30 -04:00
pkgname=hashboot-git
2015-10-04 18:24:09 -04:00
pkgver=0.7.6
pkgrel=2
2015-10-03 14:19:30 -04:00
pkgdesc="A utility to check at boottime befor network, if /boot or mbr were manipulated."
2015-10-04 18:24:09 -04:00
arch=('any')
2015-10-03 14:19:30 -04:00
url="https://git.tastytea.de/?p=hashboot.git;a=summary"
2015-10-03 18:53:25 -04:00
license=('custom:"hugware"')
2015-10-04 18:24:09 -04:00
depends=('bash' 'coreutils' 'tar' 'which' 'grep' 'gawk' 'util-linux' 'diffutils' 'sed' )
makedepends=('git' 'sed')
2015-10-03 14:19:30 -04:00
conflicts=('chkboot' 'mkinitcpio-chkcryptoboot')
2015-10-04 18:24:09 -04:00
backup=('etc/hashboot.cfg')
2015-10-03 18:53:25 -04:00
install=('hashboot.install')
2015-10-03 14:19:30 -04:00
source=(git+git://git.tastytea.de/repositories/hashboot.git)
md5sums=('SKIP')
2015-10-04 18:24:09 -04:00
build() {
cd "${srcdir}/hashboot"
sed 's/xfer/ne/g' ${srcdir}/hashboot/hashboot > ${srcdir}/hashboot/hashboot.tmp
}
2015-10-03 14:19:30 -04:00
package() {
msg "Copy files"
2015-10-04 18:24:09 -04:00
cd "${srcdir}/hashboot"
2015-10-03 17:56:56 -04:00
install -m755 -d "${pkgdir}/usr/lib/systemd/system/"
2015-10-03 14:19:30 -04:00
install -Dm644 initscript.systemd "${pkgdir}/usr/lib/systemd/system/hashboot.service"
2015-10-03 17:58:44 -04:00
install -Dm755 hashboot "${pkgdir}/usr/bin/hashboot"
2015-10-04 18:24:09 -04:00
install -Dm755 hashboot.tmp "${pkgdir}/usr/bin/hashboot"
2015-10-03 14:19:30 -04:00
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/HUGWARE"
}