PKGBUILD 1.21 KB
Newer Older
totte's avatar
totte committed
1
# Include global configuration
Phil Miller's avatar
Phil Miller committed
2

3
pkgbase=oxygen-icons
Luca Giambonini's avatar
Luca Giambonini committed
4
_pkgbase=oxygen-icons5
Phil's avatar
Phil committed
5
pkgname=('oxygen-icons' 'oxygen-icons-svg')
Luca Giambonini's avatar
Luca Giambonini committed
6
pkgver=5.47.0
7
epoch=1
8
pkgrel=1
Luca Giambonini's avatar
Luca Giambonini committed
9 10 11 12
arch=('x86_64')
url='http://www.oxygen-icons.org/'
license=('LGPL')
groups=('kf5')
almack's avatar
almack committed
13
makedepends=('cmake' 'extra-cmake-modules' 'qt5-tools')
Luca Giambonini's avatar
Luca Giambonini committed
14
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
15 16 17 18
source=(${_url}{,.sig})
sha256sums=($(curl "$_url.sha256" | cut -c-64)
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
19 20

prepare() {
Luca Giambonini's avatar
Luca Giambonini committed
21
  mkdir -p build
22
}
Manuel Tortosa's avatar
Manuel Tortosa committed
23

24
build() {
Luca Giambonini's avatar
Luca Giambonini committed
25
  cd build
26
  cmake ../${pkgname}-${pkgver} \
27 28 29 30 31 32 33
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_SYSCONFDIR=/etc \
    -DKDE_INSTALL_LIBEXECDIR=lib \
    -DBUILD_TESTING=OFF \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
Luca Giambonini's avatar
Luca Giambonini committed
34
  make
Phil Miller's avatar
Phil Miller committed
35 36
}

37
package_oxygen-icons() {
Luca Giambonini's avatar
Luca Giambonini committed
38 39 40 41
  pkgdesc="The Oxygen Icon Theme"
  
  cd build
  make DESTDIR="$pkgdir" install
Phil Miller's avatar
Phil Miller committed
42 43
}

44
package_oxygen-icons-svg() {
Luca Giambonini's avatar
Luca Giambonini committed
45
  pkgdesc="The Oxygen Icon Theme (Scalable Vector Graphics)"
totte's avatar
totte committed
46

Luca Giambonini's avatar
Luca Giambonini committed
47 48 49
  cd ${_pkgbase}-${pkgver}
  find scalable -type f ! -name '*.sh' -exec \
    install -D -m644 "{}" "${pkgdir}/usr/share/icons/oxygen/{}" \;
50
}