aboutsummaryrefslogblamecommitdiffstats
path: root/community/qpage/APKBUILD
blob: a270dc70e252522058dc91a8047368feced5289c (plain) (tree)
1
2

                                                           


































                                                                                                                          



                                                                                                                                                              
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=qpage
pkgver=3.3
pkgrel=2
pkgdesc="Sends messages to an alphanumeric pager via TAP protocol."
url="http://www.qpage.org/"
arch="all"
license="Custom"
depends=""
makedepends=""
install="$pkgname.pre-install $pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::http://archive.debian.org/debian/pool/non-free/q/$pkgname/${pkgname}_3.3final.orig.tar.gz
	config.input
	qpage.initd
	qpage.patch"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	cp -f "$srcdir"/config.input "$builddir" || return 1
	./configure --prefix=/usr \
  	    --sysconfdir=/etc \
		--localstatedir=/var
	make || return 1
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	mkdir -p "$pkgdir"/etc/qpage
	install -m755 "$builddir"/$pkgname "$pkgdir"/usr/bin/"$pkgname"
	install -m644 -D "$builddir"/example.cf "$pkgdir"/etc/qpage/qpage.conf.example
	install -m644 -D "$builddir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="a100e531aaf3a1c04af5f32d4df5a47b2fd454e5b4d46fcb6dc9730f43e731044f26c7cf0a72165d2c26033e385a2ed06c4c846f822982548e3fa83921c61fef  qpage-3.3.tar.gz
82772a1dcac5617c7a9ffde4ffe174c4e2d078ff644c873ccc39ac09ced23519f70ef79bf0ad9c69e1ae6c70dee2f57cb0e322f3f102e9849fc501737273856d  config.input
14c7af4b794b763e761b42eaa7447e00bf7a503cb640c07ffef41ff830c65c73ccee02f4c56405ce6a939b722ff83262ba34852695d785f085334385d6ad2819  qpage.initd
dbfbbdf7a1d9035a0906a2e2c70be3090ef60dd1a55622588d6a0cdd3b0bc565553857f3dbad6ec7774dc6240c5fdd061ed8269dd39e32df7758e21b8375963c  qpage.patch"