Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # WARNING: I didn't test the package this built.
- pkgname=bedup-git
- pkgver=20130303
- pkgrel=1
- pkgdesc="Deduplication for Btrfs filesystems"
- arch=('i686' 'x86_64')
- url="https://github.com/g2p/bedup"
- license=('GPL2')
- depends=(python python-cffi btrfs-progs python-sqlalchemy python-xdg)
- makedepends=('git')
- _gitroot=git://github.com/g2p/bedup.git
- _gitname=bedup
- build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
- #
- # BUILD HERE
- #
- git submodule update --init
- }
- package() {
- cd "$srcdir/$_gitname-build"
- python setup.py install --prefix=/usr --root="$pkgdir" || return 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement