Skip to content

Commit 75c6981

Browse files
committed
chore(packaging: arch): prepare PKGBUILD for numix icons plugin (re: #129)
1 parent bd096a7 commit 75c6981

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

packaging/arch/PKGBUILD_icons_numix

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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

packaging/arch/PKGBUILD_icons_suruplus_aspromauros

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ _reponame=suru-plus-aspromauros
66
pkgname="${_pkgname}-git"
77
pkgver=v3.0.r0.gd43a8ec4
88
pkgrel=1
9-
pkgdesc="Suru++ icons plugin for Themix GUI designer"
9+
pkgdesc="Suru++ Aspromauros icons plugin for Themix GUI designer"
1010
arch=('x86_64' 'i686')
1111
url="https://github.com/gusbemacbe/suru-plus-aspromauros/"
1212
license=('GPL3')

0 commit comments

Comments
 (0)