diff options
Diffstat (limited to 'testing/libxss/APKBUILD')
-rw-r--r-- | testing/libxss/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/libxss/APKBUILD b/testing/libxss/APKBUILD new file mode 100644 index 0000000000..a97ffe652a --- /dev/null +++ b/testing/libxss/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: k0r10n <k0r10n.dev@gmail.com> +# Maintainer: +pkgname=libxss +pkgver=1.2.2 +pkgrel=0 +pkgdesc="X11 Screen Saver extensioin library" +url="http://xorg.freedesktop.org/" +arch="all" +license="custom" +depends="scrnsaverproto" +depends_dev="util-macros libxext-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://xorg.freedesktop.org/releases/individual/lib/libXScrnSaver-${pkgver}.tar.bz2" + +_builddir="$srcdir"/libXScrnSaver-${pkgver} +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="7a773b16165e39e938650bcc9027c1d5 libXScrnSaver-1.2.2.tar.bz2" +sha256sums="8ff1efa7341c7f34bcf9b17c89648d6325ddaae22e3904e091794e0b4426ce1d libXScrnSaver-1.2.2.tar.bz2" +sha512sums="973aed3ad296c7160b66fccd4fff7375afc4332239acbe0ae1644fed9c453de69040f8174882ba264c731448edba9b499d398d013d556aea72434339399ed29f libXScrnSaver-1.2.2.tar.bz2" |