aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-06-20 12:47:47 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-06-20 12:52:36 +0200
commit1bb0380a593c03b9cd879b1e86950c3e2dab154d (patch)
tree04fcfa96b0f8dfd2b8b7bda880bd11a59f27c04b /testing
parentf8605daab9db216ff9f4fcdcdd4f5024d6abf07e (diff)
downloadaports-1bb0380a593c03b9cd879b1e86950c3e2dab154d.tar.bz2
aports-1bb0380a593c03b9cd879b1e86950c3e2dab154d.tar.xz
testing/xclip: update URLs and cleanup
Diffstat (limited to 'testing')
-rw-r--r--testing/xclip/APKBUILD39
1 files changed, 19 insertions, 20 deletions
diff --git a/testing/xclip/APKBUILD b/testing/xclip/APKBUILD
index 9fe167ddde..3b3b6aa5e7 100644
--- a/testing/xclip/APKBUILD
+++ b/testing/xclip/APKBUILD
@@ -2,48 +2,47 @@
# Maintainer: Orion <systmkor@gmail.com>
pkgname=xclip
pkgver=0.12
-pkgrel=1
+pkgrel=2
pkgdesc="Command line interface to the X11 clipboard"
-url="http://sourceforge.net/projects/xclip"
+url="https://github.com/astrand/xclip"
arch="all"
license="GPL2"
-depends="libxmu"
-depends_dev="libxmu-dev"
-makedepends="$depends_dev"
+depends=""
+depends_dev=""
+makedepends="autoconf automake libxmu-dev libx11-dev"
install=""
subpackages="$pkgname-doc"
-source="http://downloads.sourceforge.net/sourceforge/xclip/${pkgname}-${pkgver}.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/astrand/${pkgname}/archive/${pkgver}.tar.gz"
-_builddir="${srcdir}/${pkgname}-${pkgver}"
+builddir="$srcdir"/$pkgname-$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
+ cd "$builddir"
+ default_prepare || return 1
+ autoreconf -vif || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+ install -m644 README ChangeLog \
+ "$pkgdir"/usr/share/doc/$pkgname/ || return 1
}
-md5sums="f7e19d3e976fecdc1ea36cd39e39900d xclip-0.12.tar.gz"
-sha256sums="b7c7fad059ba446df5692d175c2a1d3816e542549661224806db369a0d716c45 xclip-0.12.tar.gz"
-sha512sums="6c769878004c02d87b9eca2b33dc34edb40acc59be767a6481f207a74d52fca3725a040b0c8deffa1419b687bd73cf3124a090413c06787c0dd137b0ede795e0 xclip-0.12.tar.gz"
+md5sums="5d001eec349fc8299400abea4f2cbb89 xclip-0.12.tar.gz"
+sha256sums="bf62559ffb84acd1362c4e4fe94a7b1125ffb0cce1f3f43ed88da21f32e01e31 xclip-0.12.tar.gz"
+sha512sums="289ab111b4b1e371c32fa66f367422989bb7cce21b9167c49fbd484c8c87d1a1f45266f70830ce4b04e7b8e30fb7eb993e7bd8b85198497ff114f723fcab2c1a xclip-0.12.tar.gz"