summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e33062ccf817562af510a47984b794ad5bb35fed (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
50
51
# Maintainer: ahmedmoselhi <ahmedmoselhi55@gmail.com> 

pkgname='grub-customizer5-git'
_pkgname='grub-customizer'
pkgver=5.2.4.r792.54672de
_pkgver=5.2.4
pkgrel=1
pkgdesc='A tool to choose grub2 bootscreen theme'
arch=('x86_64')
url="https://launchpad.net/grub-customizer"
license=('GPL3')
depends=(gcc-libs glibc grub gtkmm3 openssl)
makedepends=(atkmm cairomm cmake glib2 glibmm gtk3 libarchive libsigc++
pangomm)
optdepends=(
  'hwinfo: for additional hardware information'
  'polkit: for authorization'
  'xorg-xhost: for authorization on xorg-xwayland'
)
provides=($_pkgname)
conflicts=($_pkgname)
source=(git+https://git.launchpad.net/$_pkgname
              "grub.cfg")
sha256sums=("SKIP"
                       "47c6de7e8f77d843dd79547b6ea34d5f485271cdf86fa3770f67c59359d2e78b")

pkgver() {
  cd ${_pkgname}
  printf "%s.r%s.%s" "$_pkgver" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=None \
        -Wno-dev \
        -B build \
        -S $_pkgname
  make VERBOSE=1 -C build
}

package() {
  depends+=(libarchive.so libatkmm-1.6.so libcairomm-1.0.so libgdk-3.so
  libglib-2.0.so libglibmm-2.4.so libgtkmm-3.0.so libpangomm-1.4.so
  libsigc-2.0.so)

  make install DESTDIR="${pkgdir}" -C build
  # configuration
  install -vDm 644 grub.cfg -t "$pkgdir/etc/$_pkgname/"
  # additional documentation
  install -vDm 644 $_pkgname/{changelog,README} -t "$pkgdir/usr/share/doc/$_pkgname/"
}