python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / void-repo-nonfree / template
blob6a2be82551c600bb45d6bdb1c395ee55951612fb
1 # Template file for 'void-repo-nonfree'
2 pkgname=void-repo-nonfree
3 version=9
4 revision=1
5 noarch=yes
6 build_style=meta
7 short_desc="Void Linux drop-in file for the nonfree repository"
8 maintainer="Juan RP <xtraeme@voidlinux.eu>"
9 license="Public Domain"
10 homepage="http://www.voidlinux.eu"
12 do_install() {
13         vmkdir usr/share/xbps.d
14         case "$XBPS_TARGET_MACHINE" in
15                 *-musl)
16                         echo "repository=https://repo.voidlinux.eu/current/musl/nonfree" > \
17                                 ${DESTDIR}/usr/share/xbps.d/10-repository-nonfree.conf
18                         echo "repository=https://repo.voidlinux.eu/current/musl/debug" > \
19                                 ${DESTDIR}/usr/share/xbps.d/20-repository-debug.conf
20                         ;;
21                 *)
22                         echo "repository=https://repo.voidlinux.eu/current/nonfree" > \
23                                 ${DESTDIR}/usr/share/xbps.d/10-repository-nonfree.conf
24                         echo "repository=https://repo.voidlinux.eu/current/debug" > \
25                                 ${DESTDIR}/usr/share/xbps.d/20-repository-debug.conf
26                         ;;
27         esac
30 void-repo-debug_package() {
31         noarch=yes
32         short_desc="${short_desc/nonfree/debug}"
33         pkg_install() {
34                 vmove usr/share/xbps.d/20-repository-debug.conf
35         }