[ create a new paste ] login | about

Link: http://codepad.org/zSwN6tch    [ raw code | fork ]

Plain Text, pasted on Apr 26:
# Maintainer: Christian Hesse <mail@eworm.de>

pkgname=gptsync
pkgver=0.14
_pkgrel_debian="2"
pkgrel=2
pkgdesc="gptsync maintains an MBR partition table synchronised with a GPT partition table used as reference."
arch=('i686' 'x86_64')
depends=('gnu-efi')
makedepends=('python2' 'syslinux')
url='http://packages.debian.org/sid/gptsync'
license=('custom')
source=("http://ftp.de.debian.org/debian/pool/main/r/refit/refit_${pkgver}.orig.tar.gz"
	"http://ftp.de.debian.org/debian/pool/main/r/refit/refit_${pkgver}-${_pkgrel_debian}.debian.tar.gz")

build() {
	cd ${srcdir}/refit-${pkgver}/

	for PATCH in `cat ${srcdir}/debian/patches/series`; do
		patch -Np1 < ${srcdir}/debian/patches/${PATCH}
	done

	cd ${srcdir}/refit-${pkgver}/include/
	python2 ${srcdir}/debian/mbr/mkmbrhdr.py /usr/lib/syslinux/mbr.bin > syslinux_mbr.h

	cd ${srcdir}/refit-${pkgver}/libeg/
	make

	cd ${srcdir}/refit-${pkgver}/gptsync/
	ln -s Makefile.unix Makefile
	make

	install -D -m755 ${srcdir}/refit-${pkgver}/gptsync/gptsync ${pkgdir}/usr/sbin/gptsync
	install -D -m755 ${srcdir}/refit-${pkgver}/gptsync/showpart ${pkgdir}/usr/sbin/showpart

	gzip ${srcdir}/refit-${pkgver}/gptsync/gptsync.8
	install -D -m644 ${srcdir}/refit-${pkgver}/gptsync/gptsync.8.gz ${pkgdir}/usr/share/man/man8/gptsync.8.gz
	gzip ${srcdir}/debian/showpart.8
	install -D -m644 ${srcdir}/debian/showpart.8.gz ${pkgdir}/usr/share/man/man8/showpart.8.gz
}

sha256sums=('0101ac403c3a8c90813df20726c9e76a58515ca7d1a35a7b2ab42eaf28e25e1e'
            '5418b9d6645453ac53e831c59a255ecfe85a09038e0d5d08fc1a55cf6fb087a3')



Create a new paste based on this one


Comments: