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
pkgname=tuxonice-userui
pkgver=1.1
pkgrel=9
pkgdesc="TuxOnIce userspace user interface"
url="https://github.com/NigelCunningham/Tuxonice-Userui"
license=("GPL")
install=tuxonice-userui.install
arch=('i686' 'x86_64')
depends=('bash' 'libmng' 'libpng' 'freetype2' 'patch')
makedepends=('')
options=('!makeflags')
_rev=c3bdd83
source=($pkgname-$pkgver-${_rev}.tgz::https://github.com/NigelCunningham/Tuxonice-Userui/tarball/${_rev}
    'initcpio-install'
    'initcpio-hook'
    'pm-utils-hook'
    'systemd-hook'
    'patch_ttfc.txt'
    'patch_ttfh.txt'
)


build() {
  patch -p1 ${srcdir}/NigelCunningham-Tuxonice-Userui-${_rev}/fbsplash/ttf.c < patch_ttfc.txt
  patch -p1 ${srcdir}/NigelCunningham-Tuxonice-Userui-${_rev}/fbsplash/ttf.h < patch_ttfh.txt
  cd ${srcdir}/NigelCunningham-Tuxonice-Userui-${_rev}
  make USE_FBSPLASH=yes
}

package () {
  cd ${srcdir}/NigelCunningham-Tuxonice-Userui-${_rev}

  install -D -m644 $srcdir/initcpio-install $pkgdir/usr/lib/initcpio/install/userui
  install -D -m644 $srcdir/initcpio-hook    $pkgdir/usr/lib/initcpio/hooks/userui
  install -D -m755 $srcdir/pm-utils-hook    $pkgdir/etc/pm/sleep.d/80tuxonice-userui
  install -D -m755 $srcdir/systemd-hook     $pkgdir/usr/lib/systemd/system-sleep/tuxonice-userui.sh

  make INSTDIR=$pkgdir/usr/bin DESTDIR=$pkgdir PREFIX=/usr install
}

md5sums=('c50132b561adcc55de88ee09915765e4'
         'a8e8ecb03e319321713652e25bc34a98'
         '96a359994273ab0e8baa198914ef0433'
         '9f647880008584b7751c3f9ecec7945b'
         '44dcb2f1318ecac4155e275d28f1f443'
         '15cbc50c0d74267a1a8ede1b2f7d18da'
         '1b98edf8f843772e08171539f579f6dc')