FS#67146 - [libhangul] build the Github release

Attached to Project: Arch Linux
Opened by tinywrkb (tinywrkb) - Monday, 29 June 2020, 11:44 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 29 June 2020, 13:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The other day I had to build libhangul but kldp.net was down. I don't know if this happens frequently, but here are the suggested changes to build against the Github releases.

diff --git a/repos/extra-x86_64/PKGBUILD b/repos/extra-x86_64/PKGBUILD
index 45cc1839..f2535f9d 100644
--- a/repos/extra-x86_64/PKGBUILD
+++ b/repos/extra-x86_64/PKGBUILD
@@ -3,21 +3,24 @@

pkgname=libhangul
pkgver=0.1.0
-pkgrel=4
+pkgrel=5
pkgdesc='Input method library for Korean'
-url='http://code.google.com/p/libhangul/'
+url='https://github.com/libhangul/libhangul'
license=('LGPL')
arch=('x86_64')
-source=("https://kldp.net/hangul/release/3442-${pkgname}-${pkgver}.tar.gz")
-sha512sums=('cf84850bf7a41e743457300513c5efdf7b3e18d168f4fdc324aaa8e1be78743752fcb98385764f94c707777ab82cc9444e076808e61fdbd915c9c0d7ea93c534')
+source=("https://github.com/${pkgname}/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('f601c18de0f29e8826373c77a7b96938a0a54b8b10a14c4daebf2a93d6fc567edc470608f1573853e28db1f9d7a6c66debdbf6dff0262f9d69d4af7ed730f611')

build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgname}-${pkgver}"
+ ./autogen.sh
+ automake --add-missing
+ autoreconf
./configure --prefix=/usr
make
}

package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 29 June 2020, 13:34 GMT
Reason for closing:  Not a bug

Loading...