summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd854ec29e849a756dc9511eb266fb5d691d884d (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
#
pkgname=libreoffice-extension-cleandoc
_pkgname=cleandoc
pkgver=0.6.7
pkgrel=4
pkgdesc="remove hidden information from the document - macros, dialogs, form elements, user fields, etc."
arch=('any')
url="http://extensions.services.openoffice.org/project/cleandoc"
license=('LGPL')
groups=('libreoffice-extensions')
depends=('libreoffice')
makedepends=('unzip')
#source=('http://extensions.services.openoffice.org/e-files/4798/1/CleanDoc-0.6.7.oxt')
source=("http://downloads.sourceforge.net/project/aoo-extensions/4798/1/${_pkgname}-${pkgver}.oxt")
noextract=(${source[@]##*/})
md5sums=('27ac9e762f88b0d217662a90fe74a622')

package() {
   _DESTDIR="${pkgdir}/usr/lib/libreoffice/share/extensions/${_pkgname}/"  
   install -dm755 "${_DESTDIR}"  
   unzip -q "$srcdir"/${_pkgname}-${pkgver}.oxt -d "${_DESTDIR}"  
#   chmod -R g-w,o-w "${_DESTDIR}"
   
#   bsdtar -xf ${_pkgname}-${pkgver}.oxt -C "${_DESTDIR}"
   chmod -R a=r,a+X,u+w "${_DESTDIR}"
   chmod -R g-w,o-w "${_DESTDIR}"
}