archrelease: copy trunk to extra-x86_64
[arch-packages.git] / discount / trunk / PKGBUILD
blobe0515f5f49af37aed59fa1b47bb45286d33bea07
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
8 pkgrel=1
9 pkgdesc='A Markdown implementation written in C'
10 arch=(x86_64)
11 url="https://www.pell.portland.or.us/~orc/Code/discount/"
12 license=('custom:BSD')
13 source=($pkgname-$pkgver.tar.gz::"https://github.com/Orc/discount/archive/v$pkgver.tar.gz"
14         discount-ldflags.patch::"https://github.com/Orc/discount/commit/55cea9c5.patch")
15 sha256sums=('72c1325ddfc40871d6810f1e272cf2d45b361f26357eb38f170fd04d737bb9f2'
16             '7eced2472fdbe25badc13c35dfd6920b68b5a208889ee031ef0c060c093cc89b')
17 depends=(glibc)
18 conflicts=(markdown)
19 provides=(markdown)
20 replaces=(markdown)
22 prepare() {
23   patch -d $pkgname-$pkgver -p1 -i ../discount-ldflags.patch # Honor system ldflags
26 build() {
27   cd $pkgname-$pkgver
28   ./configure.sh --prefix=/usr --enable-all-features --with-fenced-code --shared
29   make -j1
32 package() {
33   cd $pkgname-$pkgver
34   # fix ldconfig call
35   sed -e 's|/sbin/ldconfig|/sbin/ldconfig -n|' -i librarian.sh
37   make DESTDIR="$pkgdir" install.everything
38   install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE