# Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=tlconfig-env
pkgver=0.1
pkgrel=1
epoch=
pkgdesc="Thurstylark's system config: terminal and non-graphical environment"
arch=()
url="https://git.thurstylark.com/tl-archconfig.git"
license=('GPL')
groups=()
depends=('tmux' 'htop' 'mosh' 'shuttle'
	'git' 'pkgfile' 'pv' 'unzip' 'rsync'
	'bash-completion' 'reflector' 'alsa-utils'
	'vifm' 'vcsh' 'pass' 'vim'
	'vim-plugins' 'vim-systemd' 
	'android-tools' 'android-udev'
	'fb-client'
)
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
source=('mirrorupgrade.hook'
	'61-tl-keyboard.hwdb'
	'tl-keyboard.hook')
md5sums=('7d00b26f9bc60d0985ffa6bc8bd4da80'
         '564cafe47884aac23360017d54c60512'
         'aa5d2d2a9f863164a3b529bd6329bf49')

package() {
	# Whenever pacman-mirrorlist is updated, 
	# replace the mirrorlist with the result from 
	# reflector, and cleans up the lingering .pacnew
	install -D -o root -m 644 mirrorupgrade.hook ${pkgdiir}/etc/pacman.d/hooks/mirrorupgrade.hook
	install -D -o root -m 644 tl-keyboard.hook ${pkgdiir}/etc/pacman.d/hooks/tl-keyboard.hook
	install -D -o root -m 644 61-tl-keyboard.hwdb ${pkgdiir}/etc/udev/hwdb.d/61-tl-keyboard.hwdb
}