forked from jernst/rasptimer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
34 lines (29 loc) · 1.01 KB
/
PKGBUILD
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
developer=http://upon2020.com/
url="https://github.com/jernst/rasptimer/"
maintainer=$_developer
pkgname=$(basename $(pwd))
pkgver=0.6
pkgrel=1
pkgdesc="Timer app for GPIO pins"
arch=('any')
license=('GPL')
depends=(wiringpi)
options=('!strip')
package() {
# Manifest
mkdir -p $pkgdir/var/lib/ubos/manifests
install -m0644 $startdir/ubos-manifest.json $pkgdir/var/lib/ubos/manifests/${pkgname}.json
# Icons
# mkdir -p $pkgdir/srv/http/_appicons/$pkgname
# install -m644 $startdir/appicons/{72x72,144x144}.png $pkgdir/srv/http/_appicons/$pkgname/
# Templates
mkdir -p $pkgdir/usr/share/${pkgname}/tmpl
install $startdir/tmpl/config.php.pl $pkgdir/usr/share/${pkgname}/tmpl/
install $startdir/tmpl/htaccess.tmpl $pkgdir/usr/share/${pkgname}/tmpl/
# Web stuff
mkdir -p $pkgdir/usr/share/${pkgname}/web
cp -a $startdir/web/* $pkgdir/usr/share/${pkgname}/web/
# Logs
mkdir -p $pkgdir/etc/logrotate.d/${pkgname}
install $startdir/logrotate.d-rasptimer $pkgdir/etc/logrotate.d/rasptimer
}