updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / gptsync / PKGBUILD
blob9125268a2ed1a1662070785ec8a03667cf10de5b
1 # just because AUR upload doesn't like ".pkg.tar.xz"
2 #PKGEXT=".pkg.tar.gz"
4 pkgname=gptsync
5 pkgver=0.14
6 pkgrel=2
7 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."
8 arch=('i686' 'x86_64')
9 url=('http://packages.debian.org/sid/gptsync')
10 license=('custom')
11 makedepends=('deb2targz')
12 source=("http://ftp.us.debian.org/debian/pool/main/r/refit/gptsync_0.14-2_i386.deb")
13 md5sums=('8cb9e2e6a30754fcb95da574e03faa28')
14 [ "$CARCH" = "x86_64" ] && source=("http://ftp.us.debian.org/debian/pool/main/r/refit/gptsync_0.14-2_amd64.deb")
15 [ "$CARCH" = "x86_64" ] && md5sums=('6398243d5d1bf33467553f4344fc4c2d')
17 build() {
18         debfile=${source#http://ftp.us.debian.org/debian/pool/main/r/refit/}
20         cd ${srcdir}
22         deb2targz ${debfile}
23         tar xvf ${debfile%deb}tar.gz # ${pkgdir}
25         find usr -type f -exec install -D -m644 {} ${pkgdir}/{} \;
26         find sbin -type f -exec install -D -m755 {} ${pkgdir}/{} \;