blob: 4d2a196529d91d43f2e85411a028fd1c02ed6f01 (
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
|
# Maintainer: twa022 <twa022 at gmail dot com>
_pkgname=nemo-fileroller
pkgname=nemo-engrampa
pkgver=6.2.0
pkgrel=1
pkgdesc="Archive management plugin for Nemo using engrampa"
arch=('i686' 'x86_64')
url="https://github.com/linuxmint/nemo-extensions"
license=('GPL2')
depends=('nemo' 'engrampa')
makedepends=('meson' 'samurai' 'glib2-devel')
options=('!libtool' '!emptydirs')
source=("nemo-extensions-$pkgver.tar.gz::https://github.com/linuxmint/nemo-extensions/archive/$pkgver.tar.gz")
sha256sums=('b1c7e3d269ed05f472c80c16cf3f12827cbb48cb05406b276be14060225dbbc3')
prepare() {
cd "${srcdir}/nemo-extensions-${pkgver}/${_pkgname}"
cd src
for file in *fileroller* ; do
mv "${file}" "${file/fileroller/engrampa}"
done
cd ..
find . -type f -exec sed -i -E \
-e 's:file[\ \-]?roller:engrampa:g' \
-e 's:File[\ \-]?[rR]oller:Engrampa:g' '{}' \;
}
build() {
mkdir -p "${srcdir}/nemo-extensions-${pkgver}/${_pkgname}"/builddir
cd "${srcdir}/nemo-extensions-${pkgver}/${_pkgname}"/builddir
meson setup --prefix=/usr \
--libexecdir=lib/${pkgname} \
--buildtype=plain \
..
samu
}
package() {
cd "${srcdir}/nemo-extensions-${pkgver}/${_pkgname}"/builddir
DESTDIR="${pkgdir}" samu install
}
|