public
Created

PKGBUILD

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# just because AUR upload doesn't like ".pkg.tar.xz"
#PKGEXT=".pkg.tar.gz"
 
pkgname=gptsync
pkgver=0.14
pkgrel=2
pkgdesc="gptsync is a utility to maintain an MBR partition table synchronised with a GPT partition table used as reference. The resulting MBR partition table can contain up to 4 partitions; extended partitions are not supported."
arch=('i686' 'x86_64')
url=('http://packages.debian.org/sid/gptsync')
license=('custom')
makedepends=()
source=("http://ftp.us.debian.org/debian/pool/main/r/refit/gptsync_0.14-2_i386.deb")
md5sums=('8cb9e2e6a30754fcb95da574e03faa28')
[ "$CARCH" = "x86_64" ] && source=("http://ftp.us.debian.org/debian/pool/main/r/refit/gptsync_0.14-2_amd64.deb")
[ "$CARCH" = "x86_64" ] && md5sums=('6398243d5d1bf33467553f4344fc4c2d')
 
build() {
debfile=${source#http://ftp.us.debian.org/debian/pool/main/r/refit/}
 
cd ${srcdir}
 
ar xvf ${debfile}
tar xvf data.tar.gz
 
find usr -type f -exec install -D -m644 {} ${pkgdir}/{} \;
find sbin -type f -exec install -D -m755 {} ${pkgdir}/{} \;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.