[arch-commits] Commit in prjtrellis/repos/community-x86_64 (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sun Nov 7 19:52:55 UTC 2021
Date: Sunday, November 7, 2021 @ 19:52:55
Author: ffy00
Revision: 1038689
archrelease: copy trunk to community-x86_64
Added:
prjtrellis/repos/community-x86_64/PKGBUILD
(from rev 1038688, prjtrellis/trunk/PKGBUILD)
Deleted:
prjtrellis/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 126 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 62 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-07 19:52:51 UTC (rev 1038688)
+++ PKGBUILD 2021-11-07 19:52:55 UTC (rev 1038689)
@@ -1,64 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_prj=trellis
-pkgname=prj$_prj
-pkgver=1.0
-pkgrel=5
-pkgdesc='Documentation and definitions for the Lattice ECP5 bit-stream format'
-arch=('x86_64')
-url='https://github.com/YosysHQ/prjtrellis'
-license=('custom:ISC' 'MIT')
-depends=('boost-libs')
-makedepends=('cmake' "$pkgname-db" 'boost' 'python-sphinx' 'python-sphinx_rtd_theme' 'python-recommonmark')
-optdepends=('python: Python support')
-provides=('libtrellis')
-conflicts=('libtrellis')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
- "fix-undefined-runtime_error.patch::$url/commit/d323f5f3834d23a7d070ccc64baf7ead527b9eba.patch")
-sha512sums=('9418cd8b20e0121ca8fce3978b25209df5211b13692db9f86c08c01fc28e40b15dce5c1aed73e09f5e4d9b038259a2a4a8d346bc689d9f6f20782be170728b84'
- '6043610695cd18891bbce9215ff301e3c05f4a7f4427c931cda32352012deb4ef57c1f24196f500b7e73a18b41210d6fb20fbe8f49b09993c9b4b617e7cd1b7d')
-
-prepare() {
- cd $pkgname-$pkgver
-
- patch -p1 -i ../fix-undefined-runtime_error.patch
-
- sed -i 's|set(LIBDIR "lib64")|set(LIBDIR "lib")|
- s|project(libtrellis)|project(libtrellis VERSION 1.0)|' libtrellis/CMakeLists.txt
-}
-
-build() {
- mkdir $pkgname-$pkgver/libtrellis/build
- cd $pkgname-$pkgver/libtrellis/build
-
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=/lib \
- -DCMAKE_BUILD_TYPE=Release
-
- sed -i '/Boost::python-NOTFOUND/d' CMakeFiles/*.dir/build.make
- sed -i 's|Boost::python-NOTFOUND||g' CMakeFiles/*.dir/link.txt
-
- make
-
- cd ../../docs
-
- make html
-}
-
-package() {
- cd $pkgname-$pkgver
-
- install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
- cp -r --no-preserve=ownership docs/_build/* "$pkgdir"/usr/share/doc/$pkgname/
- rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
-
- install -Dm 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- cd libtrellis/build
-
- make DESTDIR="$pkgdir" install
-
- # The database is provided in a separate package
- rmdir "$pkgdir"/usr/share/$_prj/database
-}
Copied: prjtrellis/repos/community-x86_64/PKGBUILD (from rev 1038688, prjtrellis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-07 19:52:55 UTC (rev 1038689)
@@ -0,0 +1,62 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_prj=trellis
+pkgname=prj$_prj
+pkgver=1.1
+pkgrel=1
+pkgdesc='Documentation and definitions for the Lattice ECP5 bit-stream format'
+arch=('x86_64')
+url='https://github.com/YosysHQ/prjtrellis'
+license=('custom:ISC' 'MIT')
+depends=('boost-libs')
+makedepends=('cmake' "$pkgname-db" 'boost' 'python-sphinx' 'python-sphinx_rtd_theme' 'python-recommonmark')
+optdepends=('python: Python support')
+provides=('libtrellis')
+conflicts=('libtrellis')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('9f53e3eb605deadd635a957e4bdde6ade9f24c0b966b2f9ae62a01f8240508b623c30bf452ac276caffffc46edb00180b866f4bbc3ad58151d6b3c0263ab8f0d')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ sed -i 's|set(LIBDIR "lib64")|set(LIBDIR "lib")|
+ s|project(libtrellis)|project(libtrellis VERSION 1.0)|' libtrellis/CMakeLists.txt
+}
+
+build() {
+ mkdir $pkgname-$pkgver/libtrellis/build
+ cd $pkgname-$pkgver/libtrellis/build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/lib \
+ -DCMAKE_BUILD_TYPE=Release
+
+ sed -i '/Boost::python-NOTFOUND/d' CMakeFiles/*.dir/build.make
+ sed -i 's|Boost::python-NOTFOUND||g' CMakeFiles/*.dir/link.txt
+
+ make
+
+ cd ../../docs
+
+ make html
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ cp -r --no-preserve=ownership docs/_build/* "$pkgdir"/usr/share/doc/$pkgname/
+ rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+ install -Dm 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ cd libtrellis/build
+
+ make DESTDIR="$pkgdir" install
+
+ mv "$pkgdir"/lib "$pkgdir"/usr/lib
+
+ # The database is provided in a separate package
+ rmdir "$pkgdir"/usr/share/$_prj/database
+}
More information about the arch-commits
mailing list