#Packager: Richard Lapointe #Former Packager(s): Name #Anything commented out is optional and can be deleted. pkgname=refind pkgver=0.10.2 pkgrel=1rl #arch=noarch source=(http://sourceforge.net/projects/refind/files/$pkgver/$pkgname-bin-$pkgver.zip \ refind.conf-salix \ os_salix.png \ os_salix_ob.png \ os_salix_xfce.png \ os_salix_mate.png \ os_slackel.png \ salix-wall.png ) sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/ docs=("readme" "license" "copying" "changelog" "authors" "news" "todo") url=http://www.rodsbooks.com/refind/ #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') doinst() { # run the refine installation script located in /usr/share/$pkgname-$pkgver echo Running rEFInd installation script found in /usr/share/$pkgname-$pkgver ./usr/share/$pkgname-$pkgver/refind-install } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "refind (A Salix themed UEFI Boot Manager" "A Salix themed graphical boot manager for EFI- and UEFI-based" "computers, such as all Intel-based Macs and recent (most 2011 and" "later) PCs. rEFInd presents a boot menu showing all the EFI boot" "loaders on the EFI-accessible partitions, and optionally BIOS-bootable" "partitions on Macs. EFI-compatible OSes, including Linux, provide boot" "loaders that rEFInd can detect and launch. rEFInd can launch Linux EFI" "boot loaders such as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and later" "kernels with EFI stub support." ) build() { cd $startdir/src/$pkgname-bin-$pkgver #make directories mkdir -p $startdir/pkg/etc/refind.d/ mkdir -p $startdir/pkg/usr/sbin mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver mkdir -p $startdir/pkg/usr/share/$pkgname-$pkgver # copy files to pkg dirtory cp -ra keys $startdir/pkg/etc/refind.d/ cp -ra refind refind-install fonts banners $startdir/pkg/usr/share/$pkgname-$pkgver cp mkrlconf mvrefind $startdir/pkg/usr/sbin cp -a docs/* *.txt $startdir/pkg/usr/doc/$pkgname-$pkgver # remove unnecessary package if [ "$ARCH" == "x86_64" ]; then rm -rf $startdir/pkg/usr/share/$pkgname-$pkgver/refind/drivers_ia32 \ $startdir/pkg/usr/share/$pkgname-$pkgver/refind/tools_ia32 \ $startdir/pkg/usr/share/$pkgname-$pkgver/refind/refind_ia32.efi else rm -rf $startdir/pkg/usr/share/$pkgname-$pkgver/refind/drivers_x64 \ startdir/pkg/usr/share/$pkgname-$pkgver/refind/tools_x64 \ startdir/pkg/usr/share/$pkgname-$pkgver/refind/refind_x64.efi fi # custom refind config and pngs for Salix theme cd $startdir/src/ cp refind.conf-salix $startdir/pkg/usr/share/refind-$pkgver/refind/refind.conf-sample cp -a os_* $startdir/pkg/usr/share/refind-$pkgver/refind/icons cp -a salix-wall.png $startdir/pkg/usr/share/refind-$pkgver/refind/icons }