Skip to content

Instantly share code, notes, and snippets.

View kuklinistvan's full-sized avatar

Kuklin István kuklinistvan

View GitHub Profile
function(import_static_library TARGET_NAME ARCHIVE_NAME)
find_library(${TARGET_NAME}_STATIC REQUIRED NAMES "${ARCHIVE_NAME}")
add_library(${TARGET_NAME} STATIC IMPORTED)
set (LIBRARY_PATH ${${TARGET_NAME}_STATIC})
# find_library(REQUIRED) does not seem to work...
import os
# directory of the script
# https://stackoverflow.com/a/5137509
DIR = os.path.dirname(os.path.realpath(__file__))
# gui has character encoding glitches with my native language
os.environ["LANGUAGE"] = "en"
@kuklinistvan
kuklinistvan / aur.patch
Last active January 18, 2019 10:09
AUR/yum: yum-HEAD.patch cache (to work around slow downloading)
This file has been truncated, but you can view the full file.
From 482811b1c58674d327f8914cedd377b6ff68c7bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kuklin=20Istv=C3=A1n?= <kuklinistvan@zoho.com>
Date: Fri, 18 Jan 2019 11:00:27 +0100
Subject: [PATCH] yum.patch stored in repository (...)
...in order to avoid the unreliable download from src.fedoraproject.org
---
PKGBUILD | 2 +-
yum.patch | 211265 +++++++++++++++++++++++++++++++++++++++++++++++++++