Compare commits

...

10 Commits
2.0.0 ... main

Author SHA1 Message Date
fb77671c94 update name 2024-10-23 14:03:48 +01:00
21f2d4c5ab arch build 2024-10-23 14:02:50 +01:00
11ef7f988d i dont like cmake 2024-10-23 13:54:46 +01:00
d24dce7ffe uuuuuh 2024-10-23 12:28:41 +01:00
13a50afcca uhh 2024-10-23 11:30:54 +01:00
b8a41bd474 deb build 2024-10-23 11:28:23 +01:00
e53fd06a68 added cmake again :| 2024-10-23 11:06:49 +01:00
19b8a1921e update 2024-10-21 12:49:14 +01:00
fd6b5cb8de Merge remote-tracking branch 'origin/main' 2024-10-21 12:47:01 +01:00
9c299777d3 update makefile 2024-10-21 12:45:34 +01:00
7 changed files with 49 additions and 42 deletions

View File

@ -1,19 +0,0 @@
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

2
.gitignore vendored
View File

@ -32,4 +32,6 @@
*.out *.out
*.app *.app
# Build files
build/ build/
.vscode/

View File

@ -1,7 +0,0 @@
{
"files.associations": {
"*.pyw": "python",
"string": "cpp",
"ostream": "cpp"
}
}

View File

@ -1,7 +0,0 @@
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)

View File

@ -1,4 +1,4 @@
pkgname="term-owo-git" pkgname="owo"
pkgver=1.0 pkgver=1.0
pkgrel=1 pkgrel=1
pkgdesc="A simple C++ program that owofies text" pkgdesc="A simple C++ program that owofies text"
@ -12,8 +12,7 @@ md5sums=('SKIP')
build() { build() {
cd "$srcdir/term-owo-cpp" cd "$srcdir/term-owo-cpp"
cmake . -B build make dirs build_unix
cd build && make
} }
package() { package() {

View File

@ -28,10 +28,8 @@ $ ./owo -o output.txt "Hello, world!"
``` ```
## Building ## Building
to build the program, run the following command:
```bash ```bash
$ cmake . -B build $ make dirs build_unix
$ cd build && make
$ ./owo "Hello, world!" $ ./owo "Hello, world!"
hewwo, wowld! hewwo, wowld!
``` ```

41
makefile Normal file
View File

@ -0,0 +1,41 @@
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