|
| 1 | +# Maintainer: Yauhen Kirylau <actionless DOT loveless PLUS aur AT gmail MF com> |
| 2 | +# Upstream URL: https://github.com/numixproject/numix-icon-theme |
| 3 | + |
| 4 | +_pkgname=themix-icons-numix |
| 5 | +_reponame1=numix-icon-theme |
| 6 | +_reponame2=numix-folders |
| 7 | +pkgname="${_pkgname}-git" |
| 8 | +pkgver=19.09.20.r1.g6276c6896 |
| 9 | +pkgrel=1 |
| 10 | +pkgdesc="Numix icons plugin for Themix GUI designer" |
| 11 | +arch=('x86_64' 'i686') |
| 12 | +url="https://github.com/numixproject/numix-icon-theme" |
| 13 | +license=('GPL3') |
| 14 | +source=( |
| 15 | + "git+https://github.com/themix-project/oomox.git#branch=master" |
| 16 | + "${_reponame1}::git+https://github.com/numixproject/numix-icon-theme.git#branch=master" |
| 17 | + "${_reponame2}::git+https://github.com/numixproject/numix-folders.git#branch=master" |
| 18 | +) |
| 19 | +md5sums=('SKIP' |
| 20 | + 'SKIP' |
| 21 | + 'SKIP') |
| 22 | +depends=( |
| 23 | + 'sed' |
| 24 | + 'findutils' |
| 25 | +) |
| 26 | +makedepends=( |
| 27 | + 'git' |
| 28 | + 'python' |
| 29 | +) |
| 30 | +optdepends=( |
| 31 | + 'themix-gui: GUI' |
| 32 | + 'gnome-icon-theme: fallback icons' |
| 33 | + 'gnome-icon-theme-symbolic: fallback icons' |
| 34 | +) |
| 35 | +options=( |
| 36 | + '!strip' |
| 37 | +) |
| 38 | +provides=($_pkgname) |
| 39 | +conflicts=($_pkgname) |
| 40 | + |
| 41 | +pkgver() { |
| 42 | + cd "${srcdir}/${_reponame1}" |
| 43 | + git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' |
| 44 | +} |
| 45 | + |
| 46 | +package() { |
| 47 | + _oomox_dir=/opt/oomox |
| 48 | + _plugin_name=icons_numix |
| 49 | + _plugin_subpath1="/${_reponame1}" |
| 50 | + _plugin_subpath2="/${_reponame2}" |
| 51 | + |
| 52 | + pkg_tmp_dir="${pkgdir}/_tmp" |
| 53 | + rm -fr "$pkg_tmp_dir" |
| 54 | + cp -r "${srcdir}/oomox" "$pkg_tmp_dir" |
| 55 | + rm -rf "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath1}" |
| 56 | + cp -r "${srcdir}/${_reponame1}" "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath1}" |
| 57 | + rm -rf "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath2}" |
| 58 | + cp -r "${srcdir}/${_reponame1}" "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath2}" |
| 59 | + |
| 60 | + cd "$pkg_tmp_dir" |
| 61 | + make DESTDIR="${pkgdir}" APPDIR="${_oomox_dir}" PREFIX="/usr" "install_${_plugin_name}" |
| 62 | + rm -fr "$pkg_tmp_dir" |
| 63 | + |
| 64 | + python -O -m compileall "${pkgdir}${_oomox_dir}/plugins/${_plugin_name}" -d "${_oomox_dir}/plugins/${_plugin_name}" |
| 65 | +} |
| 66 | + |
| 67 | +# vim: ft=PKGBUILD |
0 commit comments