summaryrefslogtreecommitdiff
path: root/community/nemo-extensions/PKGBUILD
blob: 5c312e52375902d3d2febbeaabbbeb951106b3bd (plain)
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
# $Id$
# Maintainer: Alexandre Filgueira <alexfilgueira@antergos.com>

pkgbase=nemo-extensions
pkgname=('nemo-fileroller'
	 'nemo-preview'
	 'nemo-python'
	 'nemo-share'
	 'nemo-seahorse')
	#'nemo-media-columns'
	#'nemo-pastebin'
	#'nemo-compare'
	#'nemo-rabbitvcs'
pkgver=2.0.0
_gitver=adeeeb12ea
pkgrel=2
arch=('i686' 'x86_64')
license=('GPL2')
url="https://github.com/linuxmint/nemo-extensions"
depends=(nemo file-roller cjs clutter-gtk clutter-gst gst-plugins-good libmusicbrainz5
         evince gtksourceview3 webkitgtk python2-gobject seahorse-nautilus samba)
makedepends=(gconf gnome-common gtk-doc intltool) # python2-distutils-extra
options=('!emptydirs')
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/linuxmint/nemo-extensions/archive/${_gitver}.tar.gz")
md5sums=('de6a36ee77265f2a1528b29526fd6afb')

prepare() {
  cd ${pkgbase}-${_gitver}*

  # Python2 fix
  find -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'

  # Fix nemo-preview build
  sed -i '/AM_GNU_GETTEXT/d' nemo-preview/configure.ac
}

build() {
  cd ${pkgbase}-${_gitver}*

  _configure_pkgs="nemo-fileroller nemo-seahorse nemo-share"
  for dir in ${_configure_pkgs}
  do
    pushd ${dir}
    autoreconf -fi
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/${dir} \
                --disable-static --disable-schemas-compile
    make
    popd
  done

  _autogen_pkgs="nemo-preview nemo-python"
  for dir in ${_autogen_pkgs}
  do
    pushd ${dir}
    ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/${dir} \
                 --disable-static --disable-schemas-compile
    make
    popd
  done

    # # nemo-pastebin
    # cd nemo-pastebin
    # python2 ./setup.py build --build-base ${srcdir}/build/ || return 1
    # cd ..

  	# nemo-media-columns
  	# Nothing to do here
  	# Required python2-pypdf from AUR

  	# nemo-compare
  	# cd nemo-compare

    # nemo-rabbitvcs
    # Nothing to do here

}

package_nemo-fileroller(){
  pkgdesc="File archiver extension for Nemo"
  depends=(nemo file-roller)

  cd ${pkgbase}-${_gitver}*/nemo-fileroller
  make DESTDIR="${pkgdir}" install
}

package_nemo-preview(){
  pkgdesc=("GtkClutter and Javascript-based quick previewer for Nemo")
  depends=(nemo cjs clutter-gtk clutter-gst gst-plugins-good libmusicbrainz5 evince gtksourceview3 webkitgtk)

  cd ${pkgbase}-${_gitver}*/nemo-preview
  make DESTDIR="${pkgdir}" install
}

package_nemo-python() {
  pkgdesc="Python2 binding for Nemo components"
  depends=(nemo python2-gobject)

  cd ${pkgbase}-${_gitver}*/nemo-python
  make DESTDIR="${pkgdir}" install
}

package_nemo-seahorse(){
  pkgdesc="PGP encryption and signing extension for Nemo"
  depends=(nemo seahorse-nautilus)

  cd ${pkgbase}-${_gitver}*/nemo-seahorse
  make DESTDIR="${pkgdir}" install

  # seahorse-tool is already in seahorse-nautilus package
  make -C tool DESTDIR="${pkgdir}" uninstall
}

package_nemo-share(){
  pkgdesc="Samba extension for Nemo"
  depends=(nemo samba)

  cd ${pkgbase}-${_gitver}*/nemo-share
  make DESTDIR="${pkgdir}" install
}

# package_nemo-media-columns(){
# 	cd ${pkgbase}-${_gitver}*/nemo-media-columns

# 	pkgdesc=("A Nemo extension to display music/EXIF and PDF metadata info in the Nemo List View")
# 	arch=(any)

#   install -d ${pkgdir}/usr/share/nemo-python/extensions/
# 	install -Dm755 ${srcdir}/nemo-media-columns.py \
# 			${pkgdir}/usr/share/nemo-python/extensions/nemo-media-columns.py
# }

# package_nemo-pastebin(){
# 	cd ${pkgbase}-${_gitver}*/nemo-pastebin

# 	pkgdesc="Nemo extension to send files to a pastebin"
# 	arch=(any)
# 	depends=(nemo pastebinit nemo-python)
#   install=nemo-pastebin.install

# 	python2 ./setup.py install --prefix=/usr --root=${pkgdir} \
# 		--no-compile -O0
# }

# package_nemo-compare() {
#   cd ${pkgbase}-${_gitver}*/nemo-compare

#   pkgdesc="Context menu comparison extension for Nemo file manager"
#   depends=(python2 python2-xdg meld nemo-python)

#   install -d ${pkgdir}/usr/share/applications/
#   install -d ${pkgdir}/usr/share/nemo-compare/

#   install -Dm755 ${srcdir}/data/nemo-compare-preferences.desktop \
#                   /usr/share/applications/nemo-compare-preferences.desktop
#   install -Dm755 ${srcdir}/data/nemo-compare-notification \
#                   /usr/share/nemo-compare/nemo-compare-notification
#   install -Dm755 ${srcdir}/src/nemo-compare.py \
#                   /usr/share/nemo-compare/nemo-compare.py
#   install -Dm755 ${srcdir}/src/utils.py \
#                   /usr/share/nemo-compare/utils.py
#   install -Dm755 ${srcdir}/src/nemo-compare-preferences.py \
#                   /usr/share/nemo-compare/nemo-compare-preferences.py

# }

# package_nemo-rabbitvcs(){
# 	cd ${pkgbase}-${_gitver}*/nemo-rabbitvcs

#   depends=(nemo-python python2-dbus)

#   install -d ${pkgdir}/usr/share/nemo-python/extensions/
#   install -Dm755 ${srcdir}/RabbitVCS.py \
#       ${pkgdir}/usr/share/nemo-python/extensions/RabbitVCS.py
# }