mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
#
|
|
# KDEmod, modular KDE packages for Arch Linux, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Jan Mette (funkyou) <funkyou @ kdemod.ath.cx>
|
|
# maintainer (x86_64): Martin Sandsmark (PhinnFort) <sandsmark @ kdemod.ath.cx>
|
|
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
|
|
|
|
pkgname=repo-clean
|
|
pkgver=0.1.4
|
|
pkgrel=9
|
|
pkgdesc="Clean utility for Pacman repository"
|
|
arch=('i686' 'x86_64')
|
|
url="http://code.google.com/p/repo-clean/"
|
|
license=('GPL')
|
|
depends=('boost-libs' 'pacman>=3.5.3')
|
|
makedepends=('boost' 'cmake' 'gcc')
|
|
source=(http://chakra-linux.org/sources/$pkgname/$pkgname-$pkgver.tar.gz
|
|
repo_clean_xz.patch
|
|
boost-1.46.1.patch)
|
|
md5sums=('6c300644fc2adc3ceb3630e1cfe299d0'
|
|
'b1ca28279da1bbe35b887b2ef2ad2305'
|
|
'7f599b351851dea0eeb1a3b68ae8dd5f')
|
|
|
|
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
|
|
|
|
mkdir build && cd build
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname/build
|
|
make DESTDIR=$pkgdir install
|
|
}
|