summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46a09a13b42bd2e2fc6b46f643f8825a5ac04f4e (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
# Maintainer: Yauhen Kirylau <yawghen AT gmail.com>
# Upstream URL: https://github.com/actionless/oomox

pkgname=oomox-git
pkgver=0.15
pkgrel=1
pkgdesc="Graphical application for generating different color variations of Numix theme (GTK2, GTK3)"
arch=('x86_64' 'i686')
url="https://github.com/actionless/oomox"
license=('GPLv3')
source=(
	"git://github.com/actionless/oomox.git#branch=master"
)
md5sums=("SKIP")
depends=('bash' 'glib2' 'gdk-pixbuf2' 'ruby-sass' 'python-gobject')
optdepends=('xorg-xrdb: for the `xresources` theme')

pkgver() {
  cd oomox
  git describe | sed 's/^v//;s/-/./g'
}

package() {
	mkdir -p ${pkgdir}/opt/oomox
	mv ./oomox/* ${pkgdir}/opt/oomox
	mkdir -p ${pkgdir}/usr/bin/
	cat > ${pkgdir}/usr/bin/oomox-gui <<EOF
#!/bin/sh
cd /opt/oomox/
exec ./gui.sh "\$@"
EOF
	chmod +x ${pkgdir}/usr/bin/oomox-gui
	cat > ${pkgdir}/usr/bin/oomox-cli <<EOF
#!/bin/sh
cd /opt/oomox/
exec ./change_color.sh "\$@"
EOF
	chmod +x ${pkgdir}/usr/bin/oomox-cli
}