blob: 3d8e23cf6bb1574bb331f958b2bd3948fd82187f (
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
|
# Maintainer: Stefan Göbel <aur —at— subtype —dot— de>
pkgname='corky'
_reponame='Corky'
pkgver='2017033001'
pkgrel='2'
pkgdesc='Some Lua modules for the system monitor Conky.'
url='https://gitlab.com/goeb/Corky/'
install="$pkgname.install"
arch=('any')
license=('GPL3')
depends=('conky-cairo' 'lua-lpeg')
makedepends=('git')
source=("$pkgname::git+https://gitlab.com/goeb/$_reponame.git#tag=$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
# Change the module's path in the example configuration:
sed -i 's!"lua/corky.lua"!"/usr/share/lua/5.3/corky.lua"!' 'example/conky.conf'
}
package() {
cd "$pkgname"
# Install the modules:
install -dm 0755 "${pkgdir}/usr/share/lua/5.3"
cp -a lua/* "${pkgdir}/usr/share/lua/5.3"
# Install the README file and the example:
install -dm 0755 "${pkgdir}/usr/share/doc/corky"
cp -a README "${pkgdir}/usr/share/doc/corky"
cp -a example "${pkgdir}/usr/share/doc/corky"
}
#:indentSize=3:tabSize=3:noTabs=true:mode=shellscript:maxLineLen=87:
|