Date: Wednesday, April 5, 2023 @ 02:14:53
Author: grawlinson
Revision: 1435276
archrelease: copy trunk to community-any
Added:
ruby-pkg-config/repos/community-any/PKGBUILD
(from rev 1435275, ruby-pkg-config/trunk/PKGBUILD)
Deleted:
ruby-pkg-config/repos/community-any/PKGBUILD
----------+
PKGBUILD | 85 ++++++++++++++++++++++++++++++++++++++++---------------------
1 file changed, 56 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-05 02:13:58 UTC (rev 1435275)
+++ PKGBUILD 2023-04-05 02:14:53 UTC (rev 1435276)
@@ -1,29 +0,0 @@
-# Maintainer: Alexander Rødseth <[email protected]>
-# Contributor: Brad Fanella <[email protected]>
-# Contributor: gem2arch 0.1
-# Contributor: theapodan
-
-pkgname=ruby-pkg-config
-_pkgname=pkg-config
-pkgver=1.4.9
-pkgrel=1
-pkgdesc='Implementation of pkg-config in ruby'
-arch=('any')
-url='https://github.com/ruby-gnome2/pkg-config'
-license=('LGPL')
-depends=('ruby')
-provides=('ruby-pkgconfig')
-replaces=('ruby-pkgconfig')
-conflicts=('ruby-pkgconfig')
-source=("https://rubygems.org/downloads/$_pkgname-$pkgver.gem")
-sha256sums=('14968c3fec94a66f53a273b74478ed6372f2cf9a08bc081ba7642878ebac3b6d')
-noextract=("$_pkgname-$pkgver.gem")
-
-package() {
- gem install \
- --no-user-install \
- --ignore-dependencies \
- --no-document \
- -i "$pkgdir$(ruby -e'puts Gem.default_dir')" \
- $_pkgname-$pkgver.gem
-}
Copied: ruby-pkg-config/repos/community-any/PKGBUILD (from rev 1435275,
ruby-pkg-config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-05 02:14:53 UTC (rev 1435276)
@@ -0,0 +1,56 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Alexander Rødseth <[email protected]>
+# Contributor: Brad Fanella <[email protected]>
+# Contributor: gem2arch 0.1
+# Contributor: theapodan
+
+pkgname=ruby-pkg-config
+_pkgname="${pkgname#ruby-}"
+pkgver=1.5.1
+pkgrel=1
+pkgdesc='Implementation of pkg-config in Ruby'
+arch=('any')
+url='https://github.com/ruby-gnome/pkg-config'
+license=('LGPL')
+depends=('ruby')
+makedepends=('git')
+provides=('ruby-pkgconfig')
+replaces=('ruby-pkgconfig')
+conflicts=('ruby-pkgconfig')
+_commit='20285cd18aa7d9fe7d66cc99a81e3e7429fe3ad7'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ gem build "$_pkgname.gemspec"
+}
+
+package() {
+ cd "$pkgname"
+
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+ gem install \
+ --local \
+ --verbose \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "$pkgdir/$_gemdir" \
+ --bindir "$pkgdir/usr/bin" \
+ "$_pkgname-$pkgver.gem"
+
+ # delete cache
+ rm -rf "$pkgdir/$_gemdir/cache"
+
+ # license
+ install -vd "$pkgdir/usr/share/licenses/$pkgname"
+ ln -sf "$_gemdir/gems/$_pkgname-$pkgver/LGPL-2.1"
"$pkgdir/usr/share/licenses/$pkgname"
+}