Date: Tuesday, October 4, 2022 @ 19:27:30
Author: felixonmars
Revision: 1321208
archrelease: copy trunk to community-x86_64
Added:
uwufetch/repos/community-x86_64/PKGBUILD
(from rev 1321207, uwufetch/trunk/PKGBUILD)
Deleted:
uwufetch/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 63 ++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 36 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-04 19:27:04 UTC (rev 1321207)
+++ PKGBUILD 2022-10-04 19:27:30 UTC (rev 1321208)
@@ -1,27 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Darkpelz <[email protected]>
-# Contributor: TheDarkBug <[email protected]>
-
-pkgname=uwufetch
-pkgver=1.7
-pkgrel=3
-pkgdesc="A meme system info tool for Linux, based on nyan/uwu trend on
r/linuxmasterrace."
-arch=('x86_64')
-url="https://github.com/TheDarkBug/$pkgname"
-license=('GPL3')
-depends=('glibc')
-makedepends=("gcc")
-optdepends=("viu: Display distro logos as images"
- "lshw: Better GPU detection")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/TheDarkBug/uwufetch/archive/$pkgver.tar.gz")
-sha256sums=("6fa341b68d4c8c4bf4ff12d88ea0a81d35328992530d3747ba6b186095f09554")
-
-build() {
- cd $pkgname-$pkgver
- make CC="cc $CFLAGS $LDFLAGS" build
-}
-
-package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
-}
Copied: uwufetch/repos/community-x86_64/PKGBUILD (from rev 1321207,
uwufetch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-04 19:27:30 UTC (rev 1321208)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Darkpelz <[email protected]>
+# Contributor: TheDarkBug <[email protected]>
+
+pkgname=uwufetch
+pkgver=2.0
+pkgrel=1
+pkgdesc="A meme system info tool for Linux, based on nyan/uwu trend on
r/linuxmasterrace."
+arch=('x86_64')
+url="https://github.com/TheDarkBug/$pkgname"
+license=('GPL3')
+depends=('glibc')
+optdepends=("viu: Display distro logos as images"
+ "lshw: Better GPU detection")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/TheDarkBug/uwufetch/archive/$pkgver.tar.gz")
+sha256sums=('4f39b893da50f814a3ff0e4a175789c85547637ddbdc4440f9667ddbaf702732')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # 2.0 breaks Makefile badly. Let's try to patch it.
+ sed -e "s/^UWUFETCH_VERSION =.*/UWUFETCH_VERSION = $pkgver/" \
+ -e "s/install: build/install:/" \
+ -e "s/lib\$(LIB_FILES:.c=.a)$/-L. -lfetch/" \
+ -i Makefile
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make CC="cc $CFLAGS $LDFLAGS" build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -dm755 "$pkgdir"/usr/include
+ make DESTDIR="$pkgdir"/usr ETC_DIR="pkgdir"/etc install
+}