- control = data.frame()
- control[1,'Source'] = pkg$srcname
- control[1,'Section'] = 'gnu-r'
- control[1,'Priority'] = 'optional'
- control[1,'Maintainer'] = maintainer
- control[1,'Build-Depends'] = paste(pkg$depends$build,collapse=', ')
- control[1,'Standards-Version'] = '3.8.1'
-
- control[2,'Package'] = pkg$debname
- control[2,'Architecture'] = 'all'
+
+ control <- data.frame()
+ control[1,'Source'] <- pkg$srcname
+ control[1,'Section'] <- 'gnu-r'
+ control[1,'Priority'] <- 'optional'
+ control[1,'Maintainer'] <- maintainer
+ control[1,'Build-Depends'] <- paste(pkg$depends$build, collapse=', ')
+ control[1,'Standards-Version'] <- '3.9.1'
+ if ('URL' %in% colnames(pkg$description)) {
+ control[1,'Homepage'] <- pkg$description[1,'URL']
+ }
+
+ control[2,'Package'] <- pkg$debname
+ control[2,'Architecture'] <- 'all'