summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d26ccb2cab0028872d9b7ff7e43a04098afebde (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
# Maintainer: Jeromy Altuna <jaltuna at outlook dot es>

pkgname=refind-theme-nord
pkgver=1.1.0
pkgrel=1
pkgdesc="Simple theme inspired by the Nord palette"
arch=('any')
url="https://github.com/jaltuna/refind-theme-nord"
license=('MIT')
depends=('refind')
source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('0b833acb2ab9a7ae04055c3e8609fff9ec2c64d227de6950252ef4830d7d95d1')

install=$pkgname.install

prepare() {
  cd "$pkgname-$pkgver"
  # do not reset the STDIN file descriptor
  sed -e 's|exec|# exec|g' -i 'setup.sh'
}

package() {
  cd "$pkgname-$pkgver"
  _theme_dir="usr/share/refind/themes/nord"

  install -D -m0755 -t "${pkgdir}/${_theme_dir}/" "setup.sh"
  install -D -m0644 -t "${pkgdir}/${_theme_dir}/" {theme.conf,*.png}
  install -D -m0644 -t "${pkgdir}/${_theme_dir}/icons" "icons/"*.png

  # docs
  install -D -m0644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
  # licenses
  install -D -m0644 -t "${pkgdir}/usr/share/licenses/${pkgname}" {LICENSE,COPYING}   
}