Skip to content

Instantly share code, notes, and snippets.

View alibitek's full-sized avatar
🌱
Growing

Alex Bitek alibitek

🌱
Growing
View GitHub Profile
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Lev Lybin <lev.lybin@gmail.com>
# Contributor: lagrange <flkazemakase@gmail.com>
# Contributor: mid-kid <esteve.varela@gmail.com>
pkgbase=python-kivy
pkgname=('python-kivy' 'python2-kivy')
pkgver=master
pkgrel=1
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ikivy/include -I/usr/include/SDL2 -I/usr/local/include/SDL2 -I/usr/include/SDL2 -I/usr/include/SDL2 -I/usr/include/python3.6m -c kivy/core/audio/audio_sdl2.c -o build/temp.linux-x86_64-3.6/kivy/core/audio/audio_sdl2.o
kivy/core/audio/audio_sdl2.c: In function ‘__pyx_f_4kivy_4core_5audio_10audio_sdl2_mix_init’:
kivy/core/audio/audio_sdl2.c:1814:63: error: ‘MIX_INIT_MODPLUG’ undeclared (first use in this function); did you mean ‘MIX_INIT_MOD’?
__pyx_v_want_flags = (__pyx_v_want_flags | ((MIX_INIT_MOD | MIX_INIT_MODPLUG) | MIX_INIT_FLUIDSYNTH));
^~~~~~~~~~~~~~~~
MIX_INIT_MOD
kivy/core/audio/audio_sdl2.c:1814:63: note: each undeclared identifier is reported only once for each function it appears in
kivy/core/audio/audio_sdl2.c
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Lev Lybin <lev.lybin@gmail.com>
# Contributor: lagrange <flkazemakase@gmail.com>
# Contributor: mid-kid <esteve.varela@gmail.com>
pkgbase=python-kivy
pkgname=('python-kivy' 'python2-kivy')
pkgver=master
pkgrel=1
[agape@agape F-Droid]$ ./build-fdroid.sh
~/Projects/Android/F-Droid/fdroiddata ~/Projects/Android/F-Droid
Create an empty config file
Make sure fdroid works and reads the metadata files properly
Cleaning up metadata file
INFO: Rewriting 'org.nutritionfacts.dailydozen'
Filling automated fields in metadata file (e.g. Auto Name and Current Version)
INFO: Processing org.nutritionfacts.dailydozen
INFO: ...updating to version 16 (41)
INFO: ...auto-generating build for 16
Categories:Sports & Health
License:GPL-3.0
Web Site:https://nutritionfacts.org/open-source/
Source Code:https://github.com/alibitek/daily-dozen-android
Issue Tracker:https://github.com/alibitek/daily-dozen-android/issues
Changelog:https://github.com/alibitek/daily-dozen-android/releases
Donate:https://nutritionfacts.org/donate/
Bitcoin:3GQUrb9sw36MoQeZNJ4g16CCNqgr3Va6bx
Auto Name:Daily Dozen
Executing tasks: [:app:assembleFdroidRelease]
Parallel execution with configuration on demand is an incubating feature.
The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
:app:preBuild UP-TO-DATE
:app:extractProguardFiles
:app:preFdroidReleaseBuild
[agape@agape fdroiddata]$ fdroid build -v -l org.nutritionfacts.dailydozen
DEBUG: Reading 'config.py'
DEBUG: Getting git vcs interface for https://github.com/alibitek/daily-dozen-android.git
DEBUG: > git --version
git version 2.14.2
DEBUG: Using git version 2.14.2
DEBUG: Directory: build/org.nutritionfacts.dailydozen
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/org.nutritionfacts.dailydozen
DEBUG: > git submodule foreach --recursive git reset --hard
[agape@agape fdroiddata]$ fdroid build -v -l org.nutritionfacts.dailydozen
DEBUG: Reading 'config.py'
DEBUG: Getting git vcs interface for https://github.com/alibitek/daily-dozen-android.git
DEBUG: > git --version
git version 2.14.2
DEBUG: Using git version 2.14.2
DEBUG: Directory: build/org.nutritionfacts.dailydozen
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/org.nutritionfacts.dailydozen
DEBUG: > git submodule foreach --recursive git reset --hard
#include <iostream>
#include <libusb.h>
using namespace std;
void printdev(libusb_device *dev); //prototype of the function
int main() {
libusb_device **devs; //pointer to pointer of device, used to retrieve a list of devices
libusb_context *ctx = NULL; //a libusb session
int r; //for return values
#include <cstdio>
int main(int argc, char* argv[])
{
volatile int x = 5;
printf("%d %d %d %d\n", x++, x/=2, x-=3, x*=2);
int y = 5;
printf("%d %d %d %d\n", y++, y/=2, y-=3, y*=2);
}