Skip to content

Commit

Permalink
chore(packaging: arch): prepare PKGBUILD for numix icons plugin (re: #…
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Mar 17, 2020
1 parent bd096a7 commit 75c6981
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
67 changes: 67 additions & 0 deletions packaging/arch/PKGBUILD_icons_numix
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Maintainer: Yauhen Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
# Upstream URL: https://github.com/numixproject/numix-icon-theme

_pkgname=themix-icons-numix
_reponame1=numix-icon-theme
_reponame2=numix-folders
pkgname="${_pkgname}-git"
pkgver=19.09.20.r1.g6276c6896
pkgrel=1
pkgdesc="Numix icons plugin for Themix GUI designer"
arch=('x86_64' 'i686')
url="https://github.com/numixproject/numix-icon-theme"
license=('GPL3')
source=(
"git+https://github.com/themix-project/oomox.git#branch=master"
"${_reponame1}::git+https://github.com/numixproject/numix-icon-theme.git#branch=master"
"${_reponame2}::git+https://github.com/numixproject/numix-folders.git#branch=master"
)
md5sums=('SKIP'
'SKIP'
'SKIP')
depends=(
'sed'
'findutils'
)
makedepends=(
'git'
'python'
)
optdepends=(
'themix-gui: GUI'
'gnome-icon-theme: fallback icons'
'gnome-icon-theme-symbolic: fallback icons'
)
options=(
'!strip'
)
provides=($_pkgname)
conflicts=($_pkgname)

pkgver() {
cd "${srcdir}/${_reponame1}"
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
_oomox_dir=/opt/oomox
_plugin_name=icons_numix
_plugin_subpath1="/${_reponame1}"
_plugin_subpath2="/${_reponame2}"

pkg_tmp_dir="${pkgdir}/_tmp"
rm -fr "$pkg_tmp_dir"
cp -r "${srcdir}/oomox" "$pkg_tmp_dir"
rm -rf "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath1}"
cp -r "${srcdir}/${_reponame1}" "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath1}"
rm -rf "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath2}"
cp -r "${srcdir}/${_reponame1}" "${pkg_tmp_dir}/plugins/${_plugin_name}${_plugin_subpath2}"

cd "$pkg_tmp_dir"
make DESTDIR="${pkgdir}" APPDIR="${_oomox_dir}" PREFIX="/usr" "install_${_plugin_name}"
rm -fr "$pkg_tmp_dir"

python -O -m compileall "${pkgdir}${_oomox_dir}/plugins/${_plugin_name}" -d "${_oomox_dir}/plugins/${_plugin_name}"
}

# vim: ft=PKGBUILD
2 changes: 1 addition & 1 deletion packaging/arch/PKGBUILD_icons_suruplus_aspromauros
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _reponame=suru-plus-aspromauros
pkgname="${_pkgname}-git"
pkgver=v3.0.r0.gd43a8ec4
pkgrel=1
pkgdesc="Suru++ icons plugin for Themix GUI designer"
pkgdesc="Suru++ Aspromauros icons plugin for Themix GUI designer"
arch=('x86_64' 'i686')
url="https://github.com/gusbemacbe/suru-plus-aspromauros/"
license=('GPL3')
Expand Down

0 comments on commit 75c6981

Please sign in to comment.