summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5828f7c22a1f50cd096f9b6b3314c7a37aadc31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Mehmet Ümit Özden<ozdenmehmetumit@gmail.com>
pkgname=k380-swap-keys
pkgver=1.3.0.r0.g5ddb97d
pkgrel=1
pkgdesc="Convenient way to swap upper fn keys on Logitech K380"
arch=(any)
url="https://github.com/mehmetumit/k380-swap-keys.git"
license=('GPL3')
makedepends=(git)
source=("git+$url")
md5sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	printf "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}

package() {
	cd "${pkgname}"
	make PREFIX="/usr/local/" TARGET_FILE="${pkgname}" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}