Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / happy


Commits:
9284b490 by Felix Yan at 2024-10-22T03:10:40+03:00
upgpkg: 2.0.2-1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,13 +1,14 @@
 pkgbase = happy
        pkgdesc = The Parser Generator for Haskell
-       pkgver = 1.20.1.1
-       pkgrel = 2
+       pkgver = 2.0.2
+       pkgrel = 1
        url = https://hackage.haskell.org/package/happy
        arch = x86_64
-       license = custom:BSD2
+       license = BSD-2-Clause
        makedepends = ghc
        depends = ghc-libs
-       source = 
https://hackage.haskell.org/packages/archive/happy/1.20.1.1/happy-1.20.1.1.tar.gz
-       sha512sums = 
a2ff6a1778884de22f4900a22b8a451ed5dc8a8e66020ce9e186a03068257748a3810c63b56f1efa0b646d99fe637f87178983f387d4c49bc33b82613877ec48
+       depends = haskell-happy-lib
+       source = 
https://hackage.haskell.org/packages/archive/happy/2.0.2/happy-2.0.2.tar.gz
+       sha512sums = 
8b21121ddc4ba23677ab6a47cf53dc54792ef2aab4d9b96a3b1f0cc75c9ca4c3f94065a61a8097c9f71cfb932dac41c7a006e2a2588998a5603ea1723ba058a7
 
 pkgname = happy


=====================================
PKGBUILD
=====================================
@@ -4,28 +4,36 @@
 # Contributor: Vesa Kaihlavirta <[email protected]>
 
 pkgname=happy
-pkgver=1.20.1.1
-pkgrel=2
+pkgver=2.0.2
+pkgrel=1
 pkgdesc="The Parser Generator for Haskell"
 url="https://hackage.haskell.org/package/happy";
 arch=('x86_64')
-license=("custom:BSD2")
-depends=('ghc-libs')
+license=("BSD-2-Clause")
+depends=('ghc-libs' 'haskell-happy-lib')
 makedepends=('ghc')
 
source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
-sha512sums=('a2ff6a1778884de22f4900a22b8a451ed5dc8a8e66020ce9e186a03068257748a3810c63b56f1efa0b646d99fe637f87178983f387d4c49bc33b82613877ec48')
+sha512sums=('8b21121ddc4ba23677ab6a47cf53dc54792ef2aab4d9b96a3b1f0cc75c9ca4c3f94065a61a8097c9f71cfb932dac41c7a006e2a2588998a5603ea1723ba058a7')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
+  cd $pkgname-$pkgver
   runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
-        --ghc-option='-dynload=deploy' --prefix=/usr --datasubdir=$pkgname
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname 
--enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
   runhaskell Setup build $MAKEFLAGS
 }
 
+check() {
+  cd $pkgname-$pkgver
+  PATH="$PWD/dist/build/happy:$PATH" HC="ghc -dynamic" runhaskell Setup test
+}
+
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  runhaskell Setup copy --destdir="${pkgdir}"
+  cd $pkgname-$pkgver
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
   rm -r "$pkgdir/usr/share/doc"
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/happy/-/commit/9284b490da702a934a847be61462a4d40d010251

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/happy/-/commit/9284b490da702a934a847be61462a4d40d010251
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to