diff options
author | Frank LENORMAND | 2018-10-29 15:10:10 +0300 |
---|---|---|
committer | Frank LENORMAND | 2018-10-29 15:11:56 +0300 |
commit | 4e3322117649d4433390450d967db878a76fcb42 (patch) | |
tree | a77a6bfd7d49dadedad4ce619a1dc07ba580168f | |
download | aur-4e3322117649d4433390450d967db878a76fcb42.tar.gz |
Basic PKGBUILD and .SRCINFO
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | 0001-only-generate-xorg-symbols.patch | 30 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d26f109715da --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = qwerty-lafayette + pkgdesc = QWERTY keyboard layout for francophone developers + pkgver = 0.6.1 + pkgrel = 1 + url = https://qwerty-lafayette.org/ + arch = any + license = WTFPL + makedepends = python + depends = xorg-server + source = https://qwerty-lafayette.org/releases/lafayette_linux_v0.6.1.py + source = 0001-only-generate-xorg-symbols.patch + sha256sums = ec89492c1ed4ce2af0b545992bf408aa2cbf29d45ba7af7ea9ef96c3914693bb + sha256sums = eec99e7ee9621a3d9934c8c4753741c23e187888bd60c16d6a7f08475d725248 + +pkgname = qwerty-lafayette + diff --git a/0001-only-generate-xorg-symbols.patch b/0001-only-generate-xorg-symbols.patch new file mode 100644 index 000000000000..608e78a71060 --- /dev/null +++ b/0001-only-generate-xorg-symbols.patch @@ -0,0 +1,30 @@ +From a8daa589349bf00767723a406bc988b2c17d8588 Mon Sep 17 00:00:00 2001 +From: Frank LENORMAND <lenormf@gmail.com> +Date: Mon, 29 Oct 2018 14:52:59 +0300 +Subject: [PATCH] patch + +--- + lafayette_linux_v0.6.1.py | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/lafayette_linux_v0.6.1.py b/lafayette_linux_v0.6.1.py +index 9764d69..280083e 100644 +--- a/lafayette_linux_v0.6.1.py ++++ b/lafayette_linux_v0.6.1.py +@@ -247,6 +247,13 @@ LAYOUTS = {'fr': [{ + };""") + }]} + ++for locale, layouts in LAYOUTS.items(): ++ for layout in layouts: ++ with open("%s_%s" % (locale, layout["name"]), "w") as fout: ++ fout.write(layout["symbols"]) ++ ++import sys ++sys.exit(0) + + ############################################################################### + # XKB/symbols: append new layouts +-- +2.19.0 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..73ed294ebc0d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Creator: Frank LENORMAND <lenormf@gmail.com> + +pkgname=qwerty-lafayette +pkgver=0.6.1 +pkgrel=1 +pkgdesc="QWERTY keyboard layout for francophone developers" +arch=("any") +url="https://qwerty-lafayette.org/" +license=('WTFPL') +depends=("xorg-server") +makedepends=("python") +source=( + "https://qwerty-lafayette.org/releases/lafayette_linux_v${pkgver}.py" + "0001-only-generate-xorg-symbols.patch" +) +sha256sums=( + ec89492c1ed4ce2af0b545992bf408aa2cbf29d45ba7af7ea9ef96c3914693bb + eec99e7ee9621a3d9934c8c4753741c23e187888bd60c16d6a7f08475d725248 +) + +build() { + patch --follow-symlinks -p1 < 0001-only-generate-xorg-symbols.patch + + mkdir build && cd build + + python ../lafayette_linux_v"${pkgver}".py +} + +package() { + cd build + + mkdir -p "${pkgdir}"/usr/share/X11/xkb/symbols/ + + for i in *; do + install -m644 "${i}" "${pkgdir}"/usr/share/X11/xkb/symbols/ + done +} |