[arch-commits] Commit in haskell-esqueleto/repos/community-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sat Jul 23 06:49:09 UTC 2022


    Date: Saturday, July 23, 2022 @ 06:49:08
  Author: felixonmars
Revision: 1255474

archrelease: copy trunk to community-x86_64

Added:
  haskell-esqueleto/repos/community-x86_64/PKGBUILD
    (from rev 1255473, haskell-esqueleto/trunk/PKGBUILD)
Deleted:
  haskell-esqueleto/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  142 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 71 insertions(+), 71 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-23 06:48:54 UTC (rev 1255473)
+++ PKGBUILD	2022-07-23 06:49:08 UTC (rev 1255474)
@@ -1,71 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
-
-_hkgname=esqueleto
-pkgname=haskell-esqueleto
-pkgver=3.5.2.2
-pkgrel=5
-pkgdesc="Type-safe EDSL for SQL queries on persistent backends."
-url="https://github.com/bitemyapp/esqueleto"
-license=("BSD")
-arch=('x86_64')
-depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-blaze-html' 'haskell-conduit'
-         'haskell-monad-logger' 'haskell-persistent' 'haskell-resourcet' 'haskell-tagged'
-         'haskell-unliftio' 'haskell-unordered-containers')
-makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-core' 'haskell-mysql' 'haskell-mysql-simple'
-             'haskell-persistent-mysql' 'haskell-persistent-postgresql' 'haskell-persistent-sqlite'
-             'haskell-postgresql-simple')
-checkdepends=('mariadb' 'pifpaf' 'postgresql')
-source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('b6ff8b2d02913d82ea53c2d1ddecac19bc63eebd67b93f75903ebe006cb691d3c144c3338aae453ec8ac57a320750b1793cf36503b05bd9f5ec89ae7be357891')
-
-prepare() {
-    cd $_hkgname-$pkgver
-    sed -i 's/port=5432/port=9824/' test/PostgreSQL/Test.hs
-}
-
-build() {
-    cd $_hkgname-$pkgver
-    
-    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
-        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
-            -f-mysql -f-postgresql
-    runhaskell Setup build $MAKEFLAGS
-    runhaskell Setup register --gen-script
-    runhaskell Setup unregister --gen-script
-    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
-    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
-}
-
-check() {
-    cd $_hkgname-$pkgver
-    # Copied from haskell-persistent-mysql
-    mkdir -p /tmp/mysql_test
-    mysql_install_db --datadir=/tmp/mysql_test
-    mysqld --datadir=/tmp/mysql_test --socket=/tmp/socket.mysql --port 33306 --skip-grant-tables &
-    MYSQL_PID=$!
-    sleep 5
-    mysql -h 127.0.0.1 -P 33306 -u root -e "create database IF NOT EXISTS esqutest;"
-
-    # Copied from haskell-persistent-postgresql
-    eval $(pifpaf run postgresql --host 127.0.0.1)
-    createuser -s esqutest
-    createdb -O esqutest esqutest
-    
-    # mysql tests fail the same way as haskell-persistent-mysql, due to incompatibility with mariadb
-    TRAVIS=true runhaskell Setup test --show-details=direct || echo "Tests failed"
-
-    kill $MYSQL_PID
-    pifpaf_stop
-}
-
-package() {
-    cd $_hkgname-$pkgver
-    
-    install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
-    install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
-    runhaskell Setup copy --destdir="$pkgdir"
-    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
-}

Copied: haskell-esqueleto/repos/community-x86_64/PKGBUILD (from rev 1255473, haskell-esqueleto/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-23 06:49:08 UTC (rev 1255474)
@@ -0,0 +1,71 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=esqueleto
+pkgname=haskell-esqueleto
+pkgver=3.5.3.0
+pkgrel=1
+pkgdesc="Type-safe EDSL for SQL queries on persistent backends."
+url="https://github.com/bitemyapp/esqueleto"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-blaze-html' 'haskell-conduit'
+         'haskell-monad-logger' 'haskell-persistent' 'haskell-resourcet' 'haskell-tagged'
+         'haskell-unliftio' 'haskell-unordered-containers')
+makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-core' 'haskell-mysql' 'haskell-mysql-simple'
+             'haskell-persistent-mysql' 'haskell-persistent-postgresql' 'haskell-persistent-sqlite'
+             'haskell-postgresql-simple')
+checkdepends=('mariadb' 'pifpaf' 'postgresql')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('446b027b57b1a1b7cbb40095aa8d3e53c40b8040ae7f18db5fbf9ff78904df58e6450c748c08c06093e1dd8477f2322ff92e65ff4359cd9e3868b5395a17a47f')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/port=5432/port=9824/' test/PostgreSQL/Test.hs
+}
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+            -f-mysql -f-postgresql
+    runhaskell Setup build $MAKEFLAGS
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    # Copied from haskell-persistent-mysql
+    mkdir -p /tmp/mysql_test
+    mysql_install_db --datadir=/tmp/mysql_test
+    mysqld --datadir=/tmp/mysql_test --socket=/tmp/socket.mysql --port 33306 --skip-grant-tables &
+    MYSQL_PID=$!
+    sleep 5
+    mysql -h 127.0.0.1 -P 33306 -u root -e "create database IF NOT EXISTS esqutest;"
+
+    # Copied from haskell-persistent-postgresql
+    eval $(pifpaf run postgresql --host 127.0.0.1)
+    createuser -s esqutest
+    createdb -O esqutest esqutest
+    
+    # mysql tests fail the same way as haskell-persistent-mysql, due to incompatibility with mariadb
+    TRAVIS=true runhaskell Setup test --show-details=direct || echo "Tests failed"
+
+    kill $MYSQL_PID
+    pifpaf_stop
+}
+
+package() {
+    cd $_hkgname-$pkgver
+    
+    install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+    install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+    runhaskell Setup copy --destdir="$pkgdir"
+    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list