-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
54 lines (43 loc) · 1.16 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Librewish <[email protected]>
pkgbase=performance-tweaks
_gitname=performance-tweaks
pkgname=(
'performance-tweaks'
)
pkgver=0.0.1.r5.ge17ef26
pkgrel=1
arch=('any')
_branch='master'
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/performance-tweaks"
license=('GPL')
makedepends=('git')
source=("git+$url.git#branch=${_branch}")
sha256sums=('SKIP')
_install() {
if [[ -d $srcdir/$_gitname/$1/etc ]]; then
install -d $pkgdir/etc
cp -rf $srcdir/$_gitname/$1/etc $pkgdir
fi
if [[ -d $srcdir/$_gitname/$1/usr ]]; then
install -d $pkgdir/etc
cp -rf $srcdir/$_gitname/$1/usr $pkgdir
fi
if [[ -d $srcdir/$_gitname/$1/skel ]]; then
install -d $pkgdir/etc
cp -rf $srcdir/$_gitname/$1/skel $pkgdir/etc
fi
}
pkgver() {
cd $pkgname
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package_performance-tweaks() {
pkgdesc='tweaks for Improving performance'
depends=(
'hdparm'
)
install=performance-tweaks.install
provides=('performance-tweaks')
conflicts=('performance-tweaks' 'powersave-tweaks')
_install ''
}