Skip to content

Instantly share code, notes, and snippets.

@gutenye
Created February 25, 2012 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gutenye/1905301 to your computer and use it in GitHub Desktop.
Save gutenye/1905301 to your computer and use it in GitHub Desktop.
PKGBUILD
# 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}/{} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment