summaryrefslogtreecommitdiffstats
path: root/abs/core/tweaker/PKGBUILD
blob: 85df000a3822c0942c16e3fe8b79b1d25d5e4735 (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
pkgname=tweaker
pkgver=1
pkgrel=56
pkgdesc="applies tweaks to the baseline configuration and attempts to optimize settings for the hardware it finds"
arch=('i686' 'x86_64')

depends=('bash' 'perl' 'perl-dbi' 'perl-exception-class' 'perl-log-log4perl' 'perl-log-dispatch' 'perl-getopt-lucid' 'perl-list-member' 'perl-class-data-inheritable' 'perl-devel-stacktrace' 'perl-xml-twig') 

source=(tweaker.sh log4perl.conf)

license=('GPL2')
#groups=('pvr')


install=tweaker.install
build() {
   TWEAKER_ROOT=usr/LH/tweaker
   mkdir -p $startdir/pkg/$TWEAKER_ROOT
   mkdir -p $startdir/pkg/$TWEAKER_ROOT/{bin,fs,tcf}
   mkdir -p $startdir/pkg/etc/profile.d
   mkdir -p $startdir/pkg/usr/lib/perl5/vendor_perl/Tweaker/ 
   
   cd $startdir
   # executables
   install -m0777 -D bin/*  $startdir/pkg/$TWEAKER_ROOT/bin
   
   # parallel root directory structure used for seeding configuration files
   # Ensure shell variables are configured at start; ensure $TWEAKER_ROOT/bin is in $PATH
   cp -rp fs $startdir/pkg/$TWEAKER_ROOT/
   chmod -R  0777 $startdir/pkg/$TWEAKER_ROOT/ 
   
   # Tweaker configuration files
   install -m0555 -D tcf/*  $startdir/pkg/$TWEAKER_ROOT/tcf

   # Tweaker-centric log4perl configuration
   #install -m0755 log4perl.conf $startdir/pkg/etc/log4perl.conf
   install -m0755 log4perl.conf $startdir/pkg/$TWEAKER_ROOT

   install -m0755 tweaker.sh $startdir/pkg/etc/profile.d/tweaker.sh

   # Copy our tweaker Perl modules for general use
   install -m0555  lib/Tweaker/* $startdir/pkg/usr/lib/perl5/vendor_perl/Tweaker/
}
md5sums=('77fab526e866b273091e6816135ef25f'
         'e897b87dd308f9562d0867de9fab2de0')