summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2021-06-02 22:16:02 -0400
committerKylie McClain <kylie@somas.is>2021-06-02 22:16:02 -0400
commit41ab05f3e9f5959c1ed5bc6e2fe09f8623008af1 (patch)
tree886a05b1b6a667dfd09394a14a9930930dac212d
parent8c887cedffe8821fae89e7824a954fe8c9a0638d (diff)
downloadpkgbuilds-41ab05f3e9f5959c1ed5bc6e2fe09f8623008af1.tar.gz
pkgbuilds-41ab05f3e9f5959c1ed5bc6e2fe09f8623008af1.tar.xz
pkgbuilds-41ab05f3e9f5959c1ed5bc6e2fe09f8623008af1.zip
xmascot: initial
-rw-r--r--xmascot/PKGBUILD36
-rw-r--r--xmascot/config.patch20
-rw-r--r--xmascot/stdint.patch10
3 files changed, 66 insertions, 0 deletions
diff --git a/xmascot/PKGBUILD b/xmascot/PKGBUILD
new file mode 100644
index 0000000..f8351c9
--- /dev/null
+++ b/xmascot/PKGBUILD
@@ -0,0 +1,36 @@
+pkgname=xmascot
+pkgver=2.6a.20200830
+pkgrel=1
+pkgdesc="Show an adorable mascot on your Xorg session"
+arch=('x86_64')
+url="http://cclub-flying.dsl.gr.jp/products/xmascot/"
+license=('GPL')
+depends=(libice libsm libx11 libxaw libxext libxmu libxpm libxt)
+makedepends=(imake)
+source=(
+ git+https://github.com/nyan-/xmascot
+ config.patch
+ stdint.patch
+)
+sha256sums=(
+ SKIP
+ 'cd125b45a94ea2e4b81430cdaa53e854449571ef7dbb85073d925764bf8f4f27'
+ '3680279518c4ff6e114d8eb125484d303b06db761d76da932542c2abce2761d9'
+)
+
+prepare() {
+ cd "${srcdir}"/"${pkgname}"
+ patch -p1 < "${srcdir}"/config.patch
+ patch -p1 < "${srcdir}"/stdint.patch
+}
+
+build() {
+ cd "${srcdir}"/"${pkgname}"
+ xmkmf -a
+ make AR="ar cq"
+}
+
+package() {
+ cd "${srcdir}"/"${pkgname}"
+ make install install.man DESTDIR="${pkgdir}" AR="ar cq"
+}
diff --git a/xmascot/config.patch b/xmascot/config.patch
new file mode 100644
index 0000000..b99fab2
--- /dev/null
+++ b/xmascot/config.patch
@@ -0,0 +1,20 @@
+--- a/config.tmpl 1997-10-23 12:41:01.000000000 -0400
++++ b/config.tmpl 2021-06-02 21:51:55.614527033 -0400
+@@ -2,7 +2,7 @@
+ #define XCOMM #
+ #endif
+
+-XCOMM CC = gcc
++XCOMM CC = cc
+ XCOMM CDEBUGFLAGS= -g -Wall
+ XCOMM CCOPTIONS=
+
+@@ -38,7 +38,7 @@
+ XCOMM %s will replaced to name of sound file.
+
+ #undef USE_SOUND
+-SOUND_COMMAND = cat %s > /dev/audio
++SOUND_COMMAND = mpv %s
+
+ XCOMM if you want to use I18N version of XMascot, define this.
+ XCOMM This also install japanese(EUC) resource file to $LANG dir
diff --git a/xmascot/stdint.patch b/xmascot/stdint.patch
new file mode 100644
index 0000000..9a2b6f5
--- /dev/null
+++ b/xmascot/stdint.patch
@@ -0,0 +1,10 @@
+--- a/xmascot.h.orig 2021-06-02 21:59:42.164022085 -0400
++++ b/xmascot.h 2021-06-02 21:59:52.790755673 -0400
+@@ -12,6 +12,7 @@
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include <X11/Xaw/Label.h>
++#include <stdint.h>
+
+ #include "image.h"
+