mirror of https://github.com/built-aur/packages
addpkg: proton-ge-custom
This commit is contained in:
parent
1266db8437
commit
7df318f8a0
|
@ -33,6 +33,19 @@ do
|
||||||
touch "${PACKAGES_TO_BUILD_DIR}/${pkg}"
|
touch "${PACKAGES_TO_BUILD_DIR}/${pkg}"
|
||||||
done < "${SRC_DIR}/built_packages.txt"
|
done < "${SRC_DIR}/built_packages.txt"
|
||||||
|
|
||||||
|
patches() {
|
||||||
|
pkgname="${1}"
|
||||||
|
|
||||||
|
if [ "${BUILD_ARCH}" = "x86-64-v3" ]
|
||||||
|
then
|
||||||
|
if [[ "${pkgname}" = "proton"* ]]
|
||||||
|
then
|
||||||
|
echo "[i] Proton patches"
|
||||||
|
sed -i 's|-march=nocona -mtune=core-avx2|-march=x86-64-v3|g' PKGBUILD
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
built() {
|
built() {
|
||||||
pkgname="${1}"
|
pkgname="${1}"
|
||||||
pkgdir="${SRC_DIR}/packages/${pkgname}"
|
pkgdir="${SRC_DIR}/packages/${pkgname}"
|
||||||
|
@ -62,6 +75,10 @@ built() {
|
||||||
|
|
||||||
cd "${BUILD_DIR}/${pkgname}"
|
cd "${BUILD_DIR}/${pkgname}"
|
||||||
|
|
||||||
|
# run custom patches
|
||||||
|
echo "[i] Running custom patches..."
|
||||||
|
patches "${pkgname}"
|
||||||
|
|
||||||
echo "[i] Installing dependencies..."
|
echo "[i] Installing dependencies..."
|
||||||
for (( i=0; i<15; i++ ))
|
for (( i=0; i<15; i++ ))
|
||||||
do
|
do
|
||||||
|
@ -80,7 +97,7 @@ built() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# custom env for AUR packages
|
# custom env for AUR packages
|
||||||
if [ "${pkgname}" = "linux-xanmod"* ]
|
if [[ "${pkgname}" = "linux-xanmod"* ]]
|
||||||
then
|
then
|
||||||
if [ "${BUILD_ARCH}" = "x86-64-v3" ]
|
if [ "${BUILD_ARCH}" = "x86-64-v3" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
AUR_NAME="proton-ge-custom"
|
||||||
|
AUR_UPDATED="1652018466"
|
Loading…
Reference in New Issue