-
Notifications
You must be signed in to change notification settings - Fork 7
/
PKGBUILD.template
45 lines (38 loc) · 1.13 KB
/
PKGBUILD.template
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
# Maintainer: Simone Scalabrino <[email protected]>
_appname="%s"
_appdesc="%s"
_gittag="%s"
_gitname=silos-apps
pkgname="silo-${_appname}"
pkgver=$_gittag
pkgrel=1
pkgdesc="${_appdesc}"
arch=('i686' 'x86_64')
url="https://github.com/intersimone999/${_gitname}"
license=('GPL3')
depends=(%s)
makedepends=('git')
source=("git+$url.git")
sha256sums=('SKIP')
package() {
cd "${srcdir}/${_gitname}/${_appname}"
basefolder="/usr/share/silos-apps"
iconsfolder="${basefolder}/icons"
for f in ${srcdir}/${_gitname}/${_appname}/icons/*.svg
do
target=$(basename "$f")
install -Dm755 "$f" "${pkgdir}/usr/share/pixmaps/silo-$target"
install -Dm755 "$f" "${pkgdir}/${iconsfolder}/$target"
done
for f in ${srcdir}/${_gitname}/${_appname}/desktops/*.desktop
do
target=$(basename "$f")
install -Dm755 "$f" "${pkgdir}/usr/share/applications/silo-$target"
done
appsfolder="${basefolder}/apps"
for f in ${srcdir}/${_gitname}/${_appname}/apps/*.qtws
do
target=$(basename "$f")
install -Dm755 "$f" "${pkgdir}/${appsfolder}/$target"
done
}