#30 pcr requests: caja-rename caja-admin
Opened 3 months ago by dikasp. Modified 3 months ago

@@ -0,0 +1,18 @@ 

+ pkgbase = caja-admin

+ 	pkgdesc = Extension for Caja to do administrative operations

+ 	pkgver = 0.0.5

+ 	pkgrel = 1

+ 	url = https://github.com/infirit/caja-admin

+ 	arch = any

+ 	license = GPL3

+ 	makedepends = meson

+ 	makedepends = gettext

+ 	depends = caja

+ 	depends = python-caja

+ 	depends = polkit

+ 	optdepends = pluma: to use the "Edit as Administrator" action

+ 	optdepends = mate-terminal: to use the "Run as Administrator" action

+ 	source = https://github.com/infirit/caja-admin/archive/0.0.5.tar.gz

+ 	sha512sums = 494b88c9cbf1ec56d14e6b2463817f606c3362c9b84ef4d75ff60189bc5498c76d712cd68fa6cf188a1e4c708dd3cb9b49eb08ea12c624fee3a6955669837a19

+ 

+ pkgname = caja-admin

@@ -0,0 +1,28 @@ 

+ # Maintainer: Konstantin Unruh <freaxmate@protonmail.com>

+ pkgname=caja-admin

+ pkgver=0.0.5

+ pkgrel=1

+ pkgdesc="Extension for Caja to do administrative operations"

+ arch=('any')

+ url="https://github.com/infirit/$pkgname"

+ license=('GPL3')

+ depends=('caja' 'python-caja' 'polkit')

+ makedepends=('meson' 'gettext')

+ optdepends=('pluma: to use the "Edit as Administrator" action'

+             'mate-terminal: to use the "Run as Administrator" action')

+ source=("https://github.com/infirit/$pkgname/archive/$pkgver.tar.gz")

+ sha512sums=('494b88c9cbf1ec56d14e6b2463817f606c3362c9b84ef4d75ff60189bc5498c76d712cd68fa6cf188a1e4c708dd3cb9b49eb08ea12c624fee3a6955669837a19')

+ 

+ build() {

+   cd "$pkgname-$pkgver"

+   meson --prefix=/usr --buildtype=plain build

+   meson compile -C build/

+ }

+ 

+ package() {

+   cd "$pkgname-$pkgver"

+   DESTDIR="$pkgdir" meson install -C build

+   install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"

+   install -Dm644 "NEWS" "$pkgdir/usr/share/doc/$pkgname/NEWS"

+   install -Dm644 "AUTHORS" "$pkgdir/usr/share/doc/$pkgname/AUTHORS"

+ }

@@ -0,0 +1,22 @@ 

+ pkgbase = caja-rename

+ 	pkgdesc = Batch renaming extension for Caja

+ 	pkgver = 21.7.18

+ 	pkgrel = 1

+ 	url = https://tari.in/www/software/caja-rename

+ 	install = caja-rename.install

+ 	arch = any

+ 	license = GPL3

+ 	makedepends = python-setuptools

+ 	makedepends = python-polib

+ 	depends = caja

+ 	depends = python-caja

+ 	depends = python

+ 	depends = python-gobject

+ 	depends = gobject-introspection

+ 	depends = gtk3

+ 	options = !emptydirs

+ 	source = https://github.com/tari01/caja-rename/archive/21.7.18.tar.gz

+ 	md5sums = 22ccb4af566afc9ab71323b74067a68e

+ 

+ pkgname = caja-rename

+ 

@@ -0,0 +1,28 @@ 

+ # Author: Robert Tari <robert at tari dot in>

+ # Maintainer: Robert Tari <robert at tari dot in>

+ 

+ pkgname="caja-rename"

+ pkgver="21.7.18"

+ pkgrel=1

+ pkgdesc="Batch renaming extension for Caja"

+ arch=("any")

+ url="https://tari.in/www/software/caja-rename"

+ license=("GPL3")

+ depends=("caja" "python-caja" "python" "python-gobject" "gobject-introspection" "gtk3")

+ makedepends=("python-setuptools" "python-polib")

+ install="${pkgname}.install"

+ source=("https://github.com/tari01/${pkgname}/archive/${pkgver}.tar.gz")

+ md5sums=("22ccb4af566afc9ab71323b74067a68e")

+ options=("!emptydirs")

+ 

+ build()

+ {

+     cd ${srcdir}/${pkgname}-${pkgver}

+     python setup.py build

+ }

+ 

+ package()

+ {

+     cd ${srcdir}/${pkgname}-${pkgver}

+     python setup.py install --root="${pkgdir}" --optimize=1

+ }

@@ -0,0 +1,26 @@ 

+ post_install()

+ {

+ 

+ 	if which pycompile >/dev/null 2>&1; then

+ 		pycompile -p caja-rename 

+ 	fi

+ 

+ }

+ 

+ post_upgrade()

+ {

+ 	post_install

+ }

+ 

+ pre_remove()

+ {

+ 

+ 	if which pyclean >/dev/null 2>&1; then

+ 		pyclean -p caja-rename 

+ 	else

+ 		pacman -Qql caja-rename | grep '\.py$' | while read file

+ 		do

+ 			rm -f "${file}"[co] >/dev/null

+ 	  	done

+ 	fi

+ }