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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
|
# Maintainer: twa022 <twa022 at gmail dot com>
_pkgbase=nemo-extensions
pkgbase=${_pkgbase}-git
_pkgname=('nemo-fileroller'
'nemo-engrampa'
'nemo-image-converter'
'nemo-preview'
'nemo-python'
'nemo-seahorse'
'nemo-share'
'nemo-terminal'
'nemo-audio-tab'
'nemo-compare'
'nemo-dropbox'
'nemo-emblems'
# 'nemo-gtkhash'
'nemo-media-columns'
'nemo-pastebin'
'nemo-repairer')
pkgname=()
for _p in "${_pkgname[@]}" ; do
pkgname+=(${_p}-git)
done
_pkgver=6.0.0
pkgver=6.0.0++g7ea8afc
pkgrel=1
pkgdesc="Various extensions for Nemo"
arch=('i686' 'x86_64')
url="https://github.com/linuxmint/nemo-extensions"
depends=('nemo')
_preview_deps=('cjs' 'clutter-gtk' 'clutter-gst' 'libmusicbrainz5' 'gtksourceview4' 'xreader')
_python_deps=('python-gobject' 'python-setuptools')
_seahorse_deps=('libcryptui' 'libgnome-keyring')
makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'git' 'meson' 'cmake')
makedepends+=("${_preview_deps[@]}" "${_python_deps[@]}" "${_seahorse_deps[@]}")
options=('!emptydirs')
source=("${pkgbase}::git+https://github.com/linuxmint/nemo-extensions")
sha256sums=('SKIP')
_release_commit='374d0353c7bf88d0840eaa4183192f3bcdbb319d'
pkgver() {
cd "${srcdir}/${pkgbase}"
printf "%s+%s+%s" \
"${_pkgver}" \
"$( bc <<< "`git rev-list HEAD --count` - `git rev-list ${_release_commit} --count`" )" \
"$( git describe --long | sed 's:.*-::' )"
}
prepare() {
cd "${srcdir}/${pkgbase}"
# nemo-engrampa patches
[ -d nemo-engrampa ] && rm -fr nemo-engrampa
cp -r nemo-fileroller nemo-engrampa
cd nemo-engrampa/src
for _file in $( ls | grep fileroller ) ; do
mv "${_file}" "${_file/fileroller/engrampa}"
done
cd "${srcdir}/${pkgbase}"
find ./nemo-engrampa -type f -exec sed -i -E \
-e 's:file[\ \-]?roller:engrampa:g' \
-e 's:File[\ \-]?[rR]oller:Engrampa:g' '{}' \;
# nemo-dropbox patches
cd "${srcdir}/${pkgbase}"
for _dir in "${_pkgname[@]}"; do
if ! [[ -f ${_dir}/configure.ac || -f ${_dir}/configure.in ]]; then
continue
fi
pushd ${_dir}
autoreconf -fi
popd
done
}
build() {
cd "${srcdir}/${pkgbase}"
for _dir in "${_pkgname[@]}"; do
if [[ -f ${_dir}/configure ]]; then
pushd ${_dir}
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/${_dir} \
--disable-schemas-compile
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
make
popd
elif [[ -f ${_dir}/meson.build ]] ; then
pushd ${_dir}
[ -d build ] && rm -fr build
mkdir -p build
cd build
meson --prefix=/usr \
--libexecdir=lib/${_dir} \
--buildtype=plain \
..
#sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
ninja
popd
fi
done
# # nemo-pastebin
cd nemo-pastebin
python ./setup.py build --build-base ${srcdir}/build/ || return 1
cd ..
}
package_nemo-fileroller-git() {
pkgdesc="File archiver extension for Nemo"
license=('GPL2')
depends+=('file-roller')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-engrampa-git() {
pkgdesc="File archiver extension for Nemo using engrampa"
license=('GPL2')
depends+=('engrampa')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-image-converter-git() {
pkgdesc="Nemo extension to rotate/resize image files"
license=('GPL2')
depends+=('imagemagick')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-preview-git() {
pkgdesc="Quick file previewer for Nemo"
license=('GPL2')
depends+=("${_preview_deps[@]}")
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-python-git() {
pkgdesc="Python binding for Nemo components"
license=('GPL2')
depends+=("${_python_deps[@]}")
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-seahorse-git() {
pkgdesc="PGP encryption and signing extension for Nemo"
license=('GPL2')
depends+=("${_seahorse_deps[@]}")
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-share-git() {
pkgdesc="Samba extension for Nemo"
license=('GPL2')
depends+=('samba')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
package_nemo-terminal-git() {
pkgdesc="Embedded terminal window for Nemo"
arch=('any')
license=('GPL3')
depends=('nemo-python>=3.9.0' 'vte3')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}"
python ./setup.py install --prefix=/usr --root="${pkgdir}" \
--no-compile -O0
}
package_nemo-media-columns-git() {
pkgdesc="A Nemo extension to display music/EXIF and PDF metadata info in the Nemo List View"
arch=('any')
license=('GPL2')
depends=('nemo-python>=3.9.0' 'python-mutagen' 'exiv2' 'python-pymediainfo' 'python-pillow' 'python-pypdf2')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}"
python ./setup.py install --prefix=/usr --root="${pkgdir}" \
--no-compile -O0
}
package_nemo-pastebin-git() {
pkgdesc="Nemo extension to send files to a pastebin"
arch=('any')
license=('GPL2')
depends=('pastebinit' 'nemo-python>=3.9.0')
optdepends=('libnofify')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}"
python ./setup.py install --prefix=/usr --root="${pkgdir}" \
--no-compile -O0
}
package_nemo-audio-tab-git() {
pkgdesc="View audio tag information in Nemo's properties tab"
license=('GPL2')
arch=('any')
depends=('nemo-python>=3.9.0' 'python-mutagen')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}"
python ./setup.py install --prefix=/usr --root="${pkgdir}" \
--no-compile -O0
}
package_nemo-dropbox-git() {
pkgdesc="Dropbox for Linux - Nemo extension"
license=('custom:CC-BY-ND-3' 'GPL3')
depends+=('dropbox')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
# install the common license
cd ..
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
package_nemo-compare-git() {
pkgdesc="Context menu comparison extension for Nemo file manager"
arch=('any')
license=('GPL3')
depends=('nemo-python>=3.9.0' 'python-xdg' 'python-gobject')
optdepends=('meld: Install at least one file comparison program'
'kompare: Additional comparison options (preferred diff, three-way, multi-compare)'
'fldiff: Additional comparison options (preferred diff, three-way, multi-compare)'
'diffuse: Alternate comparison backend'
'kdiff3: Alternate comparison backend')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}"
python ./setup.py install --prefix=/usr --root="${pkgdir}" \
--no-compile -O0
}
package_nemo-emblems-git() {
pkgdesc="Nemo file emblems extension"
arch=('any')
license=('GPL3')
depends=('nemo-python>=3.9.0')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}"
python ./setup.py install --prefix=/usr --root="${pkgdir}" \
--no-compile -O0
}
package_nemo-repairer-git() {
pkgdesc="Nemo extension for filename encoding repair"
license=('GPL2')
provides=("${pkgname/-git/}=${_pkgver}")
conflicts=("${pkgname/-git}")
cd "${srcdir}/${pkgbase}/${pkgname/-git/}/build"
DESTDIR="${pkgdir}" meson install
}
|