Skip to content

Instantly share code, notes, and snippets.

@WhyNotHugo
Created July 9, 2011 05:25
Show Gist options
  • Save WhyNotHugo/1073352 to your computer and use it in GitHub Desktop.
Save WhyNotHugo/1073352 to your computer and use it in GitHub Desktop.
marlin-bin PKGBUILD with amd64 and i686 support, as well as proper variable usage.
# Contributor Madek <gonzaloseguel@gmail.com>
pkgname=marlin-bin
pkgver=0.1.0~397
pkgrel=2
arch=('i686' 'x86_64')
pkgdesc="Marlin File Manager"
url="http://launchpad.net/marlin"
license=('GPL')
depends=('gtk3' 'libgee' 'glib2' 'cairo' 'taskview-git' 'libnotify')
makedepends=('deb2targz')
conflicts=(marlin-bzr)
if test "$CARCH" == i686; then
source=(https://launchpad.net/~elementaryart/+archive/elementary-dev/+files/marlin_${pkgver}~oneiric1_i386.deb)
md5sums=('')
_arch='i386'
fi
if test "$CARCH" == x86_64; then
source=(https://launchpad.net/~elementaryart/+archive/elementary-dev/+files/marlin_${pkgver}~oneiric1_amd64.deb)
md5sums=('')
_arch='amd64'
fi
build() {
deb2targz marlin_${pkgver}~oneiric1_${_arch}.deb
tar xzf marlin_${pkgver}~oneiric1_${_arch}.tar.gz
cp -R usr/ ${pkgdir}/usr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment