updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qwit / PKGBUILD
blob35d4c7a233313f58ec207faf1afb879c2aed5608
1 # Contributor: Ricardo Martins <ricardo+aur@scarybox.net>
2 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
4 pkgname=qwit
5 pkgver=1.1_pre2
6 pkgrel=2
7 pkgdesc="Qt4 cross-platform client for Twitter"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/qwit/"
10 license=('GPL3')
11 depends=('qt' 'qoauth')
12 makedepends=('sed' 'automoc4' 'cmake')
13 install=qwit.install
14 source=("http://qwit.googlecode.com/files/$pkgname-${pkgver/_/-}-src.tar.bz2")
15 md5sums=('e8775236e5a8a83937bdf009193b7618')
17 build() {
18   cd "$srcdir"/$pkgname-${pkgver/_/-}-src || return 1
20   # Fix .desktop item.
21   sed -i 's|Internet||' $pkgname.desktop
22   # Fix CMakeLists.txt
23   sed -i \
24     -e 's|\${QT_BINARY_DIR}|bin|' -e 's|/qca2||' \
25     -e 's|/icons|/pixmaps|' CMakeLists.txt
26   # Compile.
27   mkdir build
28   cd build
29     cmake -G "Unix Makefiles" \
30       -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
31       -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
32       -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
33       -DCMAKE_BUILD_TYPE=Release ..
35   make VERBOSE=1
38 package() {
39   cd "$srcdir"/$pkgname-${pkgver/_/-}-src/build || return 1
41   # Install program.
42   make install DESTDIR="$pkgdir"