summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e72ed2a72210b1cf406a4f63474385b304fb6698 (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
# Maintainer: Yamada Hayao <shun819.mail@gmail.com>
# Contributor: YamaD <yamad.linuxer@gmail.com>

pkgname=plymouth-theme-alter-logo-git
pkgver=1.0.0
pkgrel=1
pkgdesc="AlterLinux用のplymouthテーマ"
arch=('any')
url=https://github.com/yamad-linuxer/plymouth-theme-alter
license=('GPL')
depends=('plymouth')
optdepends=()
source=("git+https://github.com/yamad-linuxer/plymouth-theme-alter.git")
md5sums=('SKIP')
conflicts=('plymouth-theme-alter-logo')

pkgver() {
    cd "plymouth-theme-alter"

    git describe --tags | sed 's/-/.r/; s/-g/./'
}

build () {
    cd "plymouth-theme-alter"

    rm -rf alter-pp
    rm LICENSE
    rm README.md
    rm install.sh
    rm -rf .git/

    mkdir -p ./usr/share/plymouth/themes/alter-logo/
    cp -r ./alter-logo/intro/* ./usr/share/plymouth/themes/alter-logo/
    cp -r ./alter-logo/loop/* ./usr/share/plymouth/themes/alter-logo/
    cp -r ./alter-logo/misc/* ./usr/share/plymouth/themes/alter-logo/

    rm -rf alter-logo

    mv ./usr/ ..
    cd ..
    rm -rf ./plymouth-theme-alter/

}

package() {
    mkdir -p "$pkgdir"
    cp -r * "$pkgdir"
}