updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / synapse-svn / PKGBUILD
blobc69fed757b87eab639924ae4fa6a8e25d858b7b4
1 # Contributor: N30N <archlinux@alunamation.com>
3 pkgname="synapse-svn"
4 pkgver=772
5 pkgrel=1
6 pkgdesc="A node based compositor."
7 url="https://code.google.com/p/vexx/"
8 license=("GPL3")
9 arch=("i686" "x86_64")
10 depends=("qt" "openexr")
11 makedepends=("subversion")
12 source=("synapse.desktop" "synapse.sh")
13 md5sums=("48dcb31dc3b33675aac3bffffd275e5f" "ae085d8419016603ee7c7ba517f32906")
15 # _svntrunk="https://vexx.googlecode.com/svn/trunk/"
16 _svntrunk="https://vexx.googlecode.com/svn/branches/Synapse_1x"
17 _svnmod="synapse"
19 build() {
20         msg "Connecting to SVN server..."
21         if [ -d "${_svnmod}/.svn" ]; then
22                 (cd "${_svnmod}" && svn cleanup && svn update -r ${pkgver})
23                 rm -rf "${_svnmod}-build"
24         else
25                 svn co "${_svntrunk}" "${_svnmod}" --config-dir ./ -r ${pkgver}
26         fi
28         cp -rf "${_svnmod}" "${_svnmod}-build"
29         cd "${_svnmod}-build"
30         qmake
31         make
33         install -d ${pkgdir}/opt/synapse/{plugins,synapseNodes}
34         install -m755 bin/alter  ${pkgdir}/opt/synapse
35         install -m755 bin/*.so.1  ${pkgdir}/opt/synapse
36         install -m755 bin/plugins/*.so.1  ${pkgdir}/opt/synapse/plugins
37         install -m755 bin/synapseNodes/*.so.1  ${pkgdir}/opt/synapse/synapseNodes
38         install -m644 bin/synapseNodes/*.{svg,xml}  \
39                 ${pkgdir}/opt/synapse/synapseNodes
40         install -D -m755 "${srcdir}/synapse.sh" \
41                 "${pkgdir}/usr/bin/synapse"
42         install -D -m644 "${srcdir}/synapse.desktop" \
43                 "${pkgdir}/usr/share/applications/synapse.desktop"
46 # vim: set noet ff=unix: