[arch-commits] Commit in xcolor/repos (community-x86_64 community-x86_64/PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Tue Oct 5 19:51:55 UTC 2021
Date: Tuesday, October 5, 2021 @ 19:51:55
Author: orhun
Revision: 1027783
archrelease: copy trunk to community-x86_64
Added:
xcolor/repos/community-x86_64/
xcolor/repos/community-x86_64/PKGBUILD
(from rev 1027782, xcolor/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: xcolor/repos/community-x86_64/PKGBUILD (from rev 1027782, xcolor/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-10-05 19:51:55 UTC (rev 1027783)
@@ -0,0 +1,45 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Samuel Laurén <samuel dot lauren at iki dot fi>
+
+pkgname=xcolor
+pkgver=0.5.1
+pkgrel=3
+pkgdesc="Lightweight color picker for X11"
+arch=('x86_64')
+url="https://github.com/Soft/xcolor"
+license=('MIT')
+depends=('libxcb' 'libxcursor' 'libx11' 'gcc-libs' 'hicolor-icon-theme')
+makedepends=('rust' 'python')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=("cff417d0ccbece766c66a183413e167868fdbd98b8129516ff9021a4b11a5647")
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --frozen
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -D -m755 target/release/xcolor "$pkgdir/usr/bin/xcolor"
+ install -D -m644 man/xcolor.1 "$pkgdir/usr/share/man/man1/xcolor.1"
+ install -D -m644 extra/xcolor.desktop "$pkgdir/usr/share/applications/xcolor.desktop"
+ install -D -m644 extra/icons/xcolor-16.png "$pkgdir/usr/share/icons/hicolor/16x16/apps/xcolor.png"
+ install -D -m644 extra/icons/xcolor-24.png "$pkgdir/usr/share/icons/hicolor/24x24/apps/xcolor.png"
+ install -D -m644 extra/icons/xcolor-32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/xcolor.png"
+ install -D -m644 extra/icons/xcolor-48.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/xcolor.png"
+ install -D -m644 extra/icons/xcolor-256.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/xcolor.png"
+ install -D -m644 extra/icons/xcolor-512.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/xcolor.png"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/xcolor/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list