summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 427a01bed57aaae09959d4bfe953be90d2d6aa44 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Contributor: Zephyr
# Contributor: vitamin1980 <vitamin.novgorod @ yandex.ru>

pkgname=oxygen-gtk3-git
pkgver=20160429_vgtk3_1.4.1_12_g705b7
pkgrel=1
pkgdesc="Port of the default KDE widget theme (Oxygen) to GTK3"
arch=('i686' 'x86_64')
url="https://projects.kde.org/projects/playground/artwork/oxygen-gtk"
license=('LGPL')
depends=('gtk3' 'dbus-glib')
makedepends=('git' 'cmake')
conflicts=('oxygen-gtk3')
provides=('oxygen-gtk3')
options=('!strip')
source=("git://anongit.kde.org/oxygen-gtk#branch=gtk3")
md5sums=('SKIP')

#_gitroot="git://anongit.kde.org/oxygen-gtk"
_gitname="oxygen-gtk"

pkgver() {
    cd "$srcdir/$_gitname"

    echo "$(LANG=C date '+%Y%m%d')_$(git describe --tags --always --abbrev=5 | sed 's/-/_/g')"
}

build() {
  #cd "${srcdir}"
  #msg "Connecting to GIT server...."

  #if [ -d ${_gitname} ] ; then
    #cd ${_gitname} && git pull origin
    #msg "The local files are updated."
  #else
    #git clone ${_gitroot} ${_gitname}
    #cd ${_gitname}
    #git checkout gtk3
    #cd -
  #fi

  #msg "GIT checkout done or server timeout"
  #msg "Starting make..."

  #rm -rf "${srcdir}/${_gitname}-build"
  #git clone -l "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
  #cd "${srcdir}/${_gitname}-build"

  #cmake -DCMAKE_INSTALL_PREFIX=/usr \
        #-DCMAKE_BUILD_TYPE=debugfull \
        #../${_gitname}
  #make

  cd "${srcdir}/${_gitname}"
  mkdir build && cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=debugfull \
        ..

  make
}

package () {
  cd "${srcdir}/${_gitname}/build"
  make DESTDIR=${pkgdir} install
}