Commit 0b7df273 authored by Leo's avatar Leo Committed by Kevin Daudt

main/libxdg-basedir: fix url enable tests

Closes !178
parent 8447eba8
# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxdg-basedir
pkgver=1.2.0
pkgrel=0
pkgrel=1
pkgdesc="library for XDG base dir specification"
url="http://n.ethz.ch/~nevillm/download/libxdg-basedir/"
url="https://git.universe-factory.net/libuecc"
arch="all"
license="MIT"
depends=
depends_dev=
makedepends="$depends_dev"
install=""
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="https://dev.alpinelinux.org/archive/libxdg-basedir/libxdg-basedir-$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
local i
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
autoreconf -fi
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
|| return 1
make || return 1
--disable-static
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
check() {
cd "$builddir"
make check
}
sha512sums="346553ddd9d0a0c854af9320f2ced695a0838adc18736b66120bea48ea60cb9ea3a7390672a42f83909db92f692e94de833d9e8bcfe51568a72ad1f4661fde06 libxdg-basedir-1.2.0.tar.gz"
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="8584405d45e0b57e570666b6eab6d99d70411d00f88965826c9ed0292372385668f190157a10ff536f3a5a59fd0031b332ecbb8a38ac64eda1b04a0603997406 libxdg-basedir-1.2.0.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment