blob: 66cb9affc4fe1ca3c9367bab5f29ef4af0e17dce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Jameson Pugh <imntreal@gmail.com>
# Maintainer: Jameson Pugh <imntreal@gmail.com>
pkgname=libappstore-bzr
pkgver=22
pkgrel=1
pkgdesc="Provides access to the Ubuntu app store through PackageKit"
arch=('i686' 'x86_64')
url=http://launchpad.net/libappstore
license=('GPL' 'LGPL')
depends=('packagekit' 'sqlheavy' 'libgee' 'gtk3')
makedeps=('cmake')
conflicts=('libappstore')
replaces=('libappstore')
_bzrtrunk=lp:libappstore
_bzrmod=libappstore
build() {
cd "$srcdir"
if [ -d ${_bzrmod} ]; then
bzr up ${_bzrmod}
msg "The local files are updated."
else
bzr co ${_bzrtrunk} ${_bzrmod}
fi
msg "Bazaar checkout done or server timeout"
msg "Starting make..."
if [[ -d ${srcdir}/build ]]; then
msg "Cleaning the previous build directory..."
rm -rf ${srcdir}/build
fi
bzr clone ${srcdir}/${_bzrmod} ${srcdir}/build
cd ${srcdir}/build
[[ -d build ]] || mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "$srcdir/build/build"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|