summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d530977cd26ce23fe94ba7ff268a217abe48d65a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Azael Reyes <azael.devel@gmail.com>


pkgname=muposys
pkgver=0.27.0
pkgrel=1
phase=alpha

prefix=srv
bindir=srv/http
datarootdir=srv/data
libdir=usr/lib 
includedir=usr/include

pkgdesc="Multi-Porpuse Software System"
arch=('x86_64')
license=('GPL')
url="https://github.com/azaeldevel/muposys.git"
depends=('octetos-core' 'octetos-db-abstract' 'cgicc' 'sqlite3')
#backup=('etc/nanorc')
md5sums=('45a56fc00f5991d059cabceb42689ecd')
source=(https://github.com/azaeldevel/$pkgname/archive/$pkgver-$phase.tar.gz)

build() 
{
    cd $pkgname-$pkgver-$phase
    autoreconf -fi
    ./configure --prefix=/$prefix --bindir=/$bindir --datarootdir=/$datarootdir --libdir=/$libdir --includedir=/$includedir  --disable-shared --enable-static --enable-os=archlinux --with-tests --enable-database=maria
    make
}

package()
{
  	cd $pkgname-$pkgver-$phase
  	make DESTDIR="${pkgdir}" install
	
 	chown http:http $pkgdir/$bindir/*.cgi
 	
	chmod a+w $pkgdir/$datarootdir/http
	chmod a+w $pkgdir/$bindir/*.html
	chmod a+w -R $pkgdir/$bindir/css
	chmod a+w -R $pkgdir/$bindir/js
	chmod a+w -R $pkgdir/$bindir/user-mang
	chown http:http $pkgdir/$datarootdir
	chown http:http $pkgdir/$datarootdir/http
	chown http:http $pkgdir/$bindir/*.html
	chown http:http -R $pkgdir/$bindir/css
	chown http:http -R $pkgdir/$bindir/js
	chown http:http -R $pkgdir/$bindir/user-mang
	mkdir -p $pkgdir/$bindir/theme
	tar -xf $srcdir/$pkgname-$pkgver-$phase/html/Mkos-Big-Sur.tar.xz -C $pkgdir/$bindir/theme
	chown http:http -R $pkgdir/$bindir/theme
	mv $pkgdir/$bindir/add.cgi $pkgdir/$bindir/user-mang/permissions/
	mv $pkgdir/$bindir/user-permiss.cgi $pkgdir/$bindir/user-mang/permissions/
}