Compare commits
No commits in common. "main" and "2.0.0" have entirely different histories.
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = term-owo-git
|
||||
pkgdesc = A simple C++ program that owofies text
|
||||
pkgver = 1.0
|
||||
pkgrel = 1
|
||||
url = https://git.alfieking.dev/acetheking987/term-owo-cpp
|
||||
arch = x86_64
|
||||
arch = i686
|
||||
arch = arm
|
||||
arch = armv6h
|
||||
arch = armv7h
|
||||
arch = aarch64
|
||||
license = MIT
|
||||
makedepends = cmake
|
||||
makedepends = git
|
||||
makedepends = gcc
|
||||
source = git+https://git.alfieking.dev/acetheking987/term-owo-cpp.git
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = term-owo-git
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -32,6 +32,4 @@
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# Build files
|
||||
build/
|
||||
.vscode/
|
||||
build/
|
7
.vscode/settings.json
vendored
Normal file
7
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.pyw": "python",
|
||||
"string": "cpp",
|
||||
"ostream": "cpp"
|
||||
}
|
||||
}
|
7
CMakeLists.txt
Normal file
7
CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH)
|
||||
find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} g++ PATHS ENV PATH NO_DEFAULT_PATH)
|
||||
project(owo)
|
||||
add_executable(owo src/main.cpp)
|
||||
target_link_libraries(owo)
|
||||
|
7
PKGBUILD
7
PKGBUILD
@ -1,4 +1,4 @@
|
||||
pkgname="owo"
|
||||
pkgname="term-owo-git"
|
||||
pkgver=1.0
|
||||
pkgrel=1
|
||||
pkgdesc="A simple C++ program that owofies text"
|
||||
@ -12,10 +12,11 @@ md5sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/term-owo-cpp"
|
||||
make dirs build_unix
|
||||
cmake . -B build
|
||||
cd build && make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/term-owo-cpp/build"
|
||||
install -Dm755 owo "$pkgdir/usr/bin/owo"
|
||||
}
|
||||
}
|
@ -28,8 +28,10 @@ $ ./owo -o output.txt "Hello, world!"
|
||||
```
|
||||
|
||||
## Building
|
||||
```bash
|
||||
$ make dirs build_unix
|
||||
to build the program, run the following command:
|
||||
```bash
|
||||
$ cmake . -B build
|
||||
$ cd build && make
|
||||
$ ./owo "Hello, world!"
|
||||
hewwo, wowld!
|
||||
```
|
||||
|
41
makefile
41
makefile
@ -1,41 +0,0 @@
|
||||
all: clean dirs build_all
|
||||
|
||||
dirs:
|
||||
@mkdir -p build/
|
||||
|
||||
clean:
|
||||
@rm -rf build/
|
||||
|
||||
build_unix:
|
||||
@echo "Building for unix..."
|
||||
g++ -o build/owo src/main.cpp
|
||||
|
||||
build_win:
|
||||
@echo "Building for windows..."
|
||||
x86_64-w64-mingw32-g++ -o build/owo.exe src/main.cpp
|
||||
|
||||
make_deb:
|
||||
mkdir build/owo_deb
|
||||
mkdir build/owo_deb/DEBIAN
|
||||
mkdir -p build/owo_deb/usr/local/bin
|
||||
cp build/owo build/owo_deb/usr/local/bin
|
||||
touch build/owo_deb/DEBIAN/control
|
||||
echo "Package: owo" >> build/owo_deb/DEBIAN/control
|
||||
echo "Version: 1.0" >> build/owo_deb/DEBIAN/control
|
||||
echo "Maintainer: Alfie King" >> build/owo_deb/DEBIAN/control
|
||||
echo "Architecture: amd64" >> build/owo_deb/DEBIAN/control
|
||||
echo "Description: owoify text" >> build/owo_deb/DEBIAN/control
|
||||
dpkg-deb --build build/owo_deb
|
||||
mv build/owo_deb.deb build/owo.deb
|
||||
rm -rf build/owo_deb
|
||||
|
||||
make_arch:
|
||||
mkdir build/owo_arch
|
||||
cp PKGBUILD build/owo_arch
|
||||
makepkg -D build/owo_arch
|
||||
cp build/owo_arch/owo-1.0-1-x86_64.pkg.tar.zst build/owo.pkg.tar.zst
|
||||
rm -rf build/owo_arch
|
||||
|
||||
build_all: build_unix build_win make_deb make_arch
|
||||
|
||||
.PHONY: all dirs clean build_all build_unix build_win
|
Loading…
Reference in New Issue
Block a user