core/repo-clean/PKGBUILD
2012-05-06 18:41:56 +02:00

50 lines
1.3 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=repo-clean
pkgver=0.1.4
pkgrel=10
pkgdesc="Clean utility for Pacman repository"
arch=('i686' 'x86_64')
url="http://code.google.com/p/repo-clean/"
license=('GPL')
depends=('boost-libs' 'pacman>=4.0')
makedepends=('boost' 'cmake' 'gcc')
source=(http://chakra-linux.org/sources/$pkgname/$pkgname-$pkgver.tar.gz
repo_clean_xz.patch
boost-1.46.1.patch
repo_clean_pacman4.patch)
md5sums=('6c300644fc2adc3ceb3630e1cfe299d0'
'b1ca28279da1bbe35b887b2ef2ad2305'
'7f599b351851dea0eeb1a3b68ae8dd5f'
'e90dae15487fc40942053c2ff116e782')
build() {
cd $srcdir/$pkgname
# Patches.
patch -Np1 -i $srcdir/repo_clean_xz.patch
patch -uN ./src/repo-clean.cpp $srcdir/boost-1.46.1.patch
patch -p1 -i $srcdir/repo_clean_pacman4.patch
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package() {
cd $srcdir/$pkgname/build
make DESTDIR=$pkgdir install
}