forked from stephanemagnenat/homebrew-kf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kf5-oxygen-icons.rb
32 lines (23 loc) · 908 Bytes
/
kf5-oxygen-icons.rb
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
require "formula"
class Kf5OxygenIcons < Formula
homepage "http://www.kde.org/"
url "http://download.kde.org/stable/applications/15.04.3/src/oxygen-icons-15.04.3.tar.xz"
sha256 "133b66d70b51641f841799674afd993a6af0d9d9b646021a0ed609beb2ffd71e"
head 'svn://anonsvn.kde.org/home/kde/trunk/kdesupport/oxygen-icons'
depends_on "cmake" => :build
def install
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
prefix.install "install_manifest.txt"
support = "#{Etc.getpwuid.dir}/Library/Application Support"
systemshare = HOMEBREW_PREFIX/"share"
ln_sf systemshare/"icons", support
end
def caveats; <<-EOS.undent
A symlink "#{ENV['HOME']}/Library/Application Support/icons" was created
So that KF5 can find the oxygen themes.
This symlink can be removed when this formula is uninstalled.
EOS
end
end