summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81b58f49c81c40ba53a6bc230a128623038a4ead (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
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=papirus-linux-universe
pkgver=1.1.0
pkgrel=2
pkgdesc="Papirus folder icon set based on distros and the most famous icon themes in the Linux world!"
arch=('any')
url="https://github.com/Adapta-Projects/Papirus-Linux-Universe"
license=('GPL-2.0-or-later')
depends=('bash' 'papirus-icon-theme')
optdepends=('papirus-nord: additional icon themes')
provides=('papirus-folders')
conflicts=('papirus-folders')
options=('!strip')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('d9919a1c1902666662af6f401678a65ed51a2aa09193eb8d0f2f64d7b0e84bc6')

package() {
  cd Papirus-Linux-Universe-$pkgver
  install -Dm755 papirus-folders "$pkgdir/usr/bin/papirus-folders"
  install -Dm755 papirus-folders1 "$pkgdir/usr/bin/papirus-folders-nord"

  for i in 22 24 32 48 64; do

    # Remove conflicting icons provided by papirus-icon-theme
    rm Icons/${i}x${i}/*breeze*
    rm Icons/${i}x${i}/*adwaita*

    install -d "$pkgdir/usr/share/icons/Papirus/${i}x${i}/places"
    cp -r Icons/${i}x${i}/* "$pkgdir/usr/share/icons/Papirus/${i}x${i}/places"
  done
}