mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:47:21 +08:00
35 lines
808 B
Bash
35 lines
808 B
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Samir Benmendil <ram-z[at]chakra-project[dot]org>
|
|
|
|
pkgname=automoc4
|
|
pkgver=0.9.88
|
|
pkgrel=1
|
|
pkgdesc="KDE automoc4"
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.kde.org'
|
|
license=('custom')
|
|
depends=('qt>=4.4')
|
|
makedepends=('pkgconfig' 'cmake')
|
|
source=("ftp://ftp.archlinux.org/other/automoc4/automoc4-${pkgver}.tar.bz2")
|
|
md5sums=('adffb45ea2b550f284b1e3455f525176')
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
mkdir build
|
|
cd build
|
|
cmake ../${pkgname}-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}
|
|
make DESTDIR=$pkgdir install
|
|
|
|
grep -A 21 '^ Copyright' ${srcdir}/${pkgname}-${pkgver}/kde4automoc.cpp > license.txt
|
|
install -D license.txt ${pkgdir}/usr/share/licenses/automoc4/license.txt
|
|
}
|