abuild.readme (3673B)
1 # This is template file for abuild with explanations 2 # you can use this template as base for your package abuild 3 # all commented lines can be removed to keep it simple and clean. 4 # uncomment necessary optional variables/functions as needed 5 6 # 'name', 'version' and 'release' is required as it will be used in package database 7 # must be the same as directory name. 8 name=mypkg 9 10 # should use version number from package upstream as possible 11 version=1.2.3 12 13 # does not follow any number from package upstream 14 # must be increment number from 1 15 # must reset to 1 when 'version' is changed 16 # must not contain any character other than increment number from 1 17 # can be use to bump package when package need rebuild without source changed 18 release=1 19 20 # if no source defined, empty package will be created, good for making meta packages 21 # must use '$name' and '$version' variable so updating packages will be easier 22 # 4 format acceptable can be used: 23 # * <url> - just regular source tarball url 24 # * <tarball name>::<url> - good to use when upstream source tarball name is not in proper format 25 # * <url>::noextract - to skip extracting the source tarball 26 # * <filename> - when its not a url, the <filename> is expected exist inside package abuild recipe directory 27 #source="https://anyurl.com/$name-$version.tar.gz 28 $name-$version.tar.gz::https://anyurl.com/$version.tar.gz 29 https://anyurl.com/$name-$version.tar.gz::noextract 30 file" 31 32 # placed runit service with proper name in /etc/sv 33 # this is acceptable name for runit service file: 34 # * run - /etc/sv/$name/run 35 # * <whatevername> - /etc/sv/<whatevername>/run 36 # * <whatevername>.run - /etc/sv/<whatevername>/run 37 # * finish - /etc/sv/$name/finish 38 # * <whatevername>.finish - /etc/sv/<whatevername>/finish 39 #sv="run <whatevername>.run <whatevername> 40 finish <whatevername>.finish" 41 42 # auto build system already use regular options like --prefix, --sysconfdir, --libdir and etc 43 # use this to add the optional opts or to override the one in defaults (see 'defaultbuildopts' file) 44 #build_opt="" 45 46 # skipping auto apply patch 47 #skip_patch=1 48 49 # define patch opts to use other than default (-p1) 50 #patch_opt="-p1" 51 52 # keep static libraries (*.a) in packages 53 #keep_static=1 54 55 # keep libtool files (*.la) in packages 56 #keep_libtool=1 57 58 # keep locales in packages (/usr/share/locale and /usr/lib/locale) 59 #keep_locale=1 60 61 # keep documentations in packages (/usr/share/doc) 62 #keep_doc=1 63 64 # use this to force which build_type to use (if available) 65 # by default build_type will be automatically detected 66 # list available build_type (in order when autodetect) 67 # * meson_build 68 # * configure_build 69 # * cmake_build 70 # * python_build 71 # * perlmodule_build 72 # * makefile_build 73 #build_type="" 74 75 # override auto build system by using 'build()', 'prebuild()', and/or 'postbuild()' function 76 # NOTE: when 'build()' is used, 'prebuild()' and 'postbuild()' will be ignored 77 # theres 2 variable can be used in these function 78 # * $PKG - is fakeroot location where all package files is installed before packaging 79 # * $SRC - is where source is extracted 80 #prebuild() { 81 # # do whatever needed before compiling 82 # # eg: fix whatever bug 83 # sed -i 's/need to changed/to this/g' src/whateverfile 84 #} 85 # 86 #postbuild() { 87 # # do whatever needed after files installed to $PKG, before packaging occur 88 # # eg: move binary to correct location 89 # mkdir -p $PKG/usr/sbin 90 # mv $PKG/usr/bin/binary $PKG/usr/sbin 91 #} 92 # 93 #build() { 94 # sed -i 's/need to changed/to this/g' src/whateverfile 95 # ./configure --prefix=/usr 96 # make 97 # make DESTDIR=$PKG install 98 # mkdir -p $PKG/usr/sbin 99 # mv $PKG/usr/bin/binary $PKG/usr/sbin 100 #}