archrelease: copy trunk to extra-x86_64
[arch-packages.git] / discount / trunk / PKGBUILD
blobdd9afc681708ec32d0d39a48b891397a26a2d69f
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor:  Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
3 # Contributor: Bartlomiej Piotrowski <nospam at bpiotrowski dot pl>
4 # Contributor: Patrick McCarty <pnorcks at gmail dot com>
6 pkgname=discount
7 pkgver=2.2.7.c
8 _pkgver=2.2.7c
9 pkgrel=1
10 pkgdesc='A Markdown implementation written in C'
11 arch=(x86_64)
12 url='https://www.pell.portland.or.us/~orc/Code/discount/'
13 license=('custom:BSD')
14 source=(https://github.com/Orc/discount/archive/v$_pkgver/$pkgname-$pkgver.tar.gz
15         discount-ldflags.patch::https://github.com/Orc/discount/commit/55cea9c5.patch)
16 sha256sums=('5c5139f1f88e83de86169bee3fde4ebd0e1b0798643dc9065b73dc19dbce07b3'
17             '7eced2472fdbe25badc13c35dfd6920b68b5a208889ee031ef0c060c093cc89b')
18 depends=(glibc)
20 prepare() {
21   patch -d $pkgname-$_pkgver -p1 -i ../discount-ldflags.patch # Honor system ldflags
24 build() {
25   cd $pkgname-$_pkgver
26   ./configure.sh \
27     --prefix=/usr \
28     --enable-all-features \
29     --with-fenced-code \
30     --github-checkbox \
31     --shared
32   make
35 package() {
36   cd $pkgname-$_pkgver
37   # fix ldconfig call
38   sed -e 's|/sbin/ldconfig|/sbin/ldconfig -n|' -i librarian.sh
40   make DESTDIR="$pkgdir" install.everything
41   install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE