summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b8ac5cb1461a20f17c06873982cec86628d0597 (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
#!/bin/bash
# Maintainer: Ondrej Hruska <ondra@ondrovo.com>

_pkgname="autonumlock"
pkgname="autonumlock"

pkgver="1.2.4"
pkgrel=1

pkgdesc="Automatically enables Numlock for external keyboard. Can also execute custom commands, like 'xmodmap'."
arch=("any")
url="https://github.com/MightyPork/autonumlock"
license=("MIT")

depends=(bash usbutils numlockx)

source=("https://github.com/MightyPork/autonumlock/archive/$pkgver.zip")
provides=($_pkgname)
replaces=($_pkgname "autonumlock-git")

md5sums=('e5b39d4a6d0199ee6f7df8a16cabf81d')

package() {
	# install license

	srcd="${srcdir}/${_pkgname}-${pkgver}/"

	install -Dm 644 $srcd"LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"

	mkdir "${pkgdir}/usr/share/${_pkgname}/"

	cp -p $srcd"autonumlock" "${pkgdir}/usr/share/${_pkgname}/"
	cp -p $srcd"default_config" "${pkgdir}/usr/share/${_pkgname}/"

	mkdir -p "${pkgdir}/usr/bin/"
	ln -s "/usr/share/${_pkgname}/autonumlock" "${pkgdir}/usr/bin/autonumlock"
}