17 lines
605 B
Markdown
17 lines
605 B
Markdown
# Create patch
|
|
* `diff -ruN path/to/original.file patch/to/changed.file` > patch.patch
|
|
* Open resulting patch and change header
|
|
** `--- a/path/file.extension`
|
|
** `+++ b/path/file.extension`
|
|
|
|
# PKGBUILD changes
|
|
* Add to `source` array
|
|
* Add to checksum array (`'SKIP'`)
|
|
* Add applying of patch to `build()`/`prepare()`
|
|
** `patch -p1 -i ../patch.patch`
|
|
|
|
Also add package to `/etc/pacman.conf` -> `IgnorePkg` directive, as otherwise it gets overwritten during update
|
|
|
|
# Upstream stats
|
|
Successfully upstreamed the following patches:
|
|
* `i3status/memory_unit.patch` - see https://github.com/i3/i3status/pull/369 |