浏览代码

✨feat: new template for Nyan Cat

Naz 1 天之前
父节点
当前提交
4c80d0aa07
共有 2 个文件被更改,包括 25 次插入1 次删除
  1. 1 1
      .github/workflows/build-packages.yml
  2. 24 0
      srcpkgs/nyancat/template

+ 1 - 1
.github/workflows/build-packages.yml

@@ -14,7 +14,7 @@ env:
   ARCH: x86_64
   HOST: x86_64
   PLATFORM: linux/amd64
-  PACKAGES: "brave,ferdium,librewolf,vscodium,obsidian,onlyoffice,freetube,tutanota-desktop,drawio-desktop,sklauncher,cinny-desktop,pika-backup,zen-browser,PrismLauncher-Cracked"
+  PACKAGES: "brave,ferdium,librewolf,vscodium,obsidian,onlyoffice,freetube,tutanota-desktop,drawio-desktop,sklauncher,cinny-desktop,pika-backup,zen-browser,PrismLauncher-Cracked,nyancat"
 
 jobs:
   build-packages:

+ 24 - 0
srcpkgs/nyancat/template

@@ -0,0 +1,24 @@
+# Template file for 'nyancat'
+pkgname=nyancat
+version=1.2.1
+revision=1
+only_for_archs="x86_64"
+build_style=gnu-makefile
+short_desc="Nyancat rendered in your terminal"
+maintainer="Naz <[email protected]>"
+license="NCSA"
+homepage="https://nyancat.dakko.us/"
+distfiles="https://github.com/klange/nyancat/archive/refs/tags/${version}.tar.gz"
+checksum=a5bfafb6ea69917071aa05f9a52db43e47e97272eb2f4c6c827630cddb015972
+
+do_build() {
+	cd src
+	make CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+do_install() {
+	# Install the binary
+	vbin src/nyancat
+	# Install the man page
+	vman nyancat.1
+}